U.S. stocks drifted higher Thursday as fiscal cliff negotiations in Washington seemed to be headed for a showdown.
The Dow Jones industrial average and the S&P 500 both gained about 0.5%. The Nasdaq rose 0.2%.
Shares of large U.S. banks were among the best performers, with Bank of America and JPMorgan Chase leading the Dow. Goldman Sachs, Citigroup, Morgan Stanley and Wells Fargo were also higher.
After making progress earlier this week, President Obama and House Speaker John Boehner butted heads Wednesday, ahead of the year-end deadline for an agreement on tax hikes and spending cuts.
Lawmakers in the House will vote later Thursday on Plan B, a GOP version of an agreement on the fiscal cliff. The White House has already threatened to veto that plan, saying it would bring only "minimal" changes in projected budget deficits.
Boehner said Thursday he was not convinced Plan B would die in the Senate, where Democrats have a majority. But he criticized Obama for not making concessions on spending cuts and entitlement reform after Republicans gave ground on tax hikes.
"I am convinced the president is unwilling to stand up to his own party on the big issues that face our country," said Boehner.
While failing to resolve the fiscal cliff could tip the economy back into recession, some investors have accepted that the talks will probably continue into early next year.
"I increasingly believe that we are going to fall off the fiscal cliff," said Jack Ablin, chief investment officer at BMO Private Bank. "But it will not be the end of the world."
Investors downplayed the risk of missing the deadline, suggesting that lawmakers could delay some spending cuts and that changes to the tax code could be made retroactive.
"It doesn't have to be an immediate nose dive," said Art Hogan, managing director at Lazard Capital Markets. "But the market is certainly not going to celebrate if the deal gets pushed into next year."
As has been the case recently, the fiscal cliff continued to trump economic fundamentals.
The government released its final estimate of third-quarter GDP growth -- a 3.1% annual rate, much faster than the 1.3% rate in the second quarter. In other economic news, jobless claims rose by 17,000 to 361,000 in the latest week.
Existing home sales rose 5.9% in November to an annual rate of 5.04 million, according to the National Association of Realtors. It was the highest sales rate since November 2009.
Manufacturing activity in the Philadelphia area rebounded in December, according to a report from the Federal Reserve Bank of Philadelphia. The Philly Fed index rose to 8.1 for the month, up from a negative 10.7 in November.
On the corporate front, shares of NYSE Euronext surged 34% after the operator of the New York Stock Exchange agreed to be bought by IntercontinentalExchange Inc for $8.2 billion in cash and stock.
After the closing bell, BlackBerry maker Research in Motion said it lost 22 cents per share in the third quarter, which was a smaller loss than expected. Nike reported earnings of $1.14 per share in the company's fiscal second quarter, topping analyst forecasts.
KB Home shares fell after the homebuilder reported quarterly earnings that declined over the past year.
Meanwhile, Rite Aid stock soared after the company reported its first profit in more than five years.
Used car retailer CarMax reported strong quarterly results, sending shares higher.
Bed Bath & Beyond Inc shares dropped after the retailer offered weak guidance when it reported quarterly results Wednesday.
Also late Wednesday, Google announced it will sell its Motorola Mobility Home division, which includes cable set-top boxes and modems, to Arris for $2.35 billion. Arris stock rose about 3%, while Google ticked slightly higher.
European markets ended little changed, with the exception of the CAC 40 in France, which rose 0.2%.
Meanwhile, Asian markets ended mixed, with Shanghai and Hong Kong posting gains and the Nikkei retreating after the Bank of Japan announced a widely anticipated extension of its bond-buying program.
The dollar was weaker against most major currencies. Oil and gold prices fell. The yield on the 10-year Treasury note fell to 1.77% from 1.8% on Wednesday.