The Dow Jones Industrial Average ended up 6.26 points, or 0.05%, at 13,365.87, gaining 0.6% on the week. Earlier, the Dow hit an intraday high of 13,451.38.
Of the Dow's 30 components, 14 were in positive territory. Among the biggest decliners were General Motors Corp. , which fell 2.9%, J.P. Morgan Chase , down 0.9%, and Citigroup , down 0.9%.
The biggest gainers were Exxon Mobil Corp. , up 1.4%, and AT&T Inc. , up 1%.
The S&P 500 Index edged up 2.12 points, or 0.1%, at 1,478.49, gaining 0.4% on the week.
The Nasdaq Composite ended down 2.33 points, or 0.09%, at 2,674.46, but gained 0.6% on the week.
The Dow is on track for a yearly gain of 7.2%, the S&P for a gain of 4.2% and the Nasdaq for a rise of 10.7%.
The new home sales report was "the turning point and pushed it [the market] lower," said Owen Fitzpatrick, head of the U.S. equity group at Deutsche Bank. "The number was quite a bit weaker than expected."
Sales of new U.S. homes fell by 9% in November to a seasonally adjusted annual rate of 647,000, their lowest since April 1995, the Commerce Department reported Friday.
On average, economists surveyed by MarketWatch were expecting new-home sales to drop to a seasonally adjusted annual rate of 710,000 in November.
"It points to the fact that we're having a housing recession," Fitzpatrick said. "We're going to see these types of numbers on the housing side that are quite negative. [However,] when you look at the broader picture, we're still looking at an economy that's growing at a slower rate, but still growing."
On the bright side, business activity in the Chicago region improved in December, according to a survey of corporate purchasing managers released on Friday. The Chicago purchasing-managers' index rose to 56.6% in December from 52.9% in November. Readings of more than 50% indicate that more companies were expanding than contracting.
Overall, the stock market has had a decent December, said Chuck Carlson, CEO of Horizon Investment Services. But, it's getting tuckered out.
"This market feels a little bit like the individual who completes the Iron Man triathlon, where they're gasping and gasping to the finish line. They do finish the race, but they don't have a whole lot left after that," he said. Carlson thinks the first couple of weeks of the new year will be tricky because of that.
On Thursday, U.S. stocks fell sharply after the assassination of Pakistan opposition leader Benazir Bhutto and a weaker-than-forecast rise in durable-goods orders, with the Dow ending the session down nearly 200 points.
On the New York Stock Exchange, over 1 billion shares were traded, with advancers outpacing decliners 16 to 15.
On the Nasdaq, over 1.3 billion shares exchanged hands, with decliners outpacing advancers 16 to 13.
Bond insurers sell off
The battered bond insurance industry took another hit on Friday after Warren Buffett's Berkshire Hathaway
reportedly started a rival firm targeting municipal issuers. The new firm, Berkshire Hathaway Assurance, is a bond insurer for cities, counties and states that issue bonds to finance sewer systems, schools, hospitals and other public projects, according to a report in the Wall Street Journal.
Shares of rivals Ambac and MBIA dropped 13.8% and 15.9% respectively.
Separately, Berkshire Hathaway is going to buy a reinsurance unit for $433 million from Holland's ING .
The Journal also reported that some major banks, including Citigroup and HSBC Holdings , are considering selling off a range of various assets.
Citigroup could sell 80%-held Student Loan Corp , its North American auto-lending unit, its 24% stake in Brazil credit card operation Redecard and the bank's Japanese consumer finance business, the newspaper reported.
HSBC may sell its auto-finance business, the report said. Separately, Swiss bank UBS said it will not proceed with the acquisition of Standard Chartered Bank's mutual-funds management business in India.
Dubai World increased its stake in MGM Mirage to 6.5%, buying 5 million shares of the casino operator from billionaire Kirk Kerkorian at $84.25.
Shares of MSC Industrial dropped 3.9% after Bear Stearns downgraded the company to peer perform from outperform, citing concerns that the U.S. maintenance, repair and overhaul market will modestly slow in the next couple of months.
Shares of Genesco Inc. surged 16.5%, after a judge ruled that executives of the shoe retailer -- target of a $1.5 billion buyout by Finish Line Inc. -- didn't commit fraud during merger negotiations and ordered Finish Line to complete the deal.
A last-minute decline sent crude-oil futures down for the first time in five days, as traders sold their positions to take profits. Crude for February delivery closed down 62 cents, or 0.6%, at $96 a barrel on the New York Mercantile Exchange, having earlier hit an intraday high of $97.85. For the week, crude gained $2.69, or 2.9%.
Gold for February delivery rallied $10.90, or 1.3%, to end at $842.70 an ounce, continuing to gain from safe-haven demand and dollar weakness. The metal posted a weekly gain of $27.30.
"The market is going to keep a very close eye on what's happening in Pakistan," said Peter Cardillo, chief market economist at Avalon Partners. "The key will be what happens with the price of gold and oil if there is any escalation of violence."
The dollar was down against most major foreign currencies, as worse-than-forecast data on U.S. new-home sales raised expectations that the Federal Reserve will cut interest rates again in 2008.
Treasury bonds extended gains, sending yields sharply lower, as investors fled to the safety of fixed-income assets.
By Polya Lesova