IBM Corporation and PriceWaterhouseCoopers agreed to pay the United States a total of more than 5.2 million to settle allegations that the companies solicited and provided improper payments and other things of value on technology contracts with government agencies.