After bitter New Year brinksmanship, the US Congress finally backed a deal to avert a "fiscal cliff" of tax hikes and massive spending cuts that had threatened to unleash economic calamity.
The House of Representatives late Tuesday passed a deal between the White House and Republicans to raise taxes on the rich and put off automatic $109-billion budget cuts for two months, lifting the clouds of immediate crisis.
The deal's fate had hung in the balance for hours as House conservatives sought to add spending reductions to a version passed by the Senate in the early hours of 2013 that would likely have killed the compromise.
In the end, the House voted 257 votes to 167 to pass the original bill with minority Democrats joining a smaller band of majority Republicans to pass the legislation after a fiercely contested and unusual session on New Year's Day.
President Barack Obama, who campaigned for re-election on a platform of building a more equitable economic system, declared the deal was a promise kept, despite falling short of earlier hopes for a grand deficit bargain.
"I will sign a law that raises taxes on the wealthiest two percent of Americans while preventing a middle class tax hike that could have sent the economy back into recession," Obama told reporters after the vote.
"The deficit needs to be reduced in way that's balanced. Everyone pays their fair share. Everyone does their part," Obama said, before heading to Air Force One to resume his interrupted annual vacation in his native Hawaii.
Had the deal splintered, all Americans would have been hit by tax increases and the spending cuts would have kicked in across the government, in a combined $500-billion shock that could have rocked the fragile recovery.
The House vote took place after a conservative rebellion fizzled when it became clear there were not sufficient votes in the restive Republican caucus to send an amended version of the bill cuts back to the Senate.
Republican party leaders ultimately feared they would carry the can if the deal collapsed, leaving Americans enraged by higher taxes and the prospect that an economy slowly recovering from crisis could be plunged back into recession.
The political feuding which spanned the Christmas and New Year holidays reflected the near impossibility in forging compromise in Washington, where power is divided between a Democratic president and the Republican House.
It was also a signal that Obama, despite a thumping re-election win in November, may find it tough to achieve second term legislative goals that include immigration reform, clean energy legislation and gun control.
The truce in dysfunctional Washington is likely to be brief, given the fight that will ensue over the spending cuts that now loom at the end of February as well as over regular budget bill extensions.
Those fights will be paralleled by one over Obama's request for Congress to lift the country's $16-trillion borrowing limit. Republicans are already demanding concessions on expenditures in return for allowing it to rise.
Obama issued a blunt warning on Tuesday that he would not play ball with Republicans by enjoining in another batter over the debt ceiling.
"If Congress refuses to give the United States government the ability to pay these bills on time, the consequences for the entire global economy would be catastrophic, far worse than the impact of a fiscal cliff," he warned.
House Speaker John Boehner, smarting from a defeat by the re-elected president on tax rates, warned that the focus would now turn to Republican turf of tightening the budget.
"Now the focus turns to spending. The American people re-elected a Republican majority in the House, and we will use it in 2013 to hold the president accountable for the 'balanced' approach he promised," Boehner said.
The Republican leader promised "significant spending cuts and reforms to the entitlement (social welfare) programs that are driving our country deeper and deeper into debt."
Senate Republican minority leader Mitch McConnell, a key figure in engineering the fiscal cliff deal, also warned of spending cuts.
"That's a debate the American people want. It's the debate we'll have next. And it's a debate Republicans are ready for."
Stock markets, which had been likely to plunge if the deal had foundered, reacted positively to the news with indices in Asia rising sharply.
Hong Kong was up 1.91 percent, Seoul rose 1.48 percent, and Sydney put on 1.29 percent. Financial markets in Japan and China were closed for a public holiday.
The deal to avert the fiscal cliff raised income taxes only on households earning $450 000 a year and exempted anyone else.
The deal also included an end to a temporary two percent cut to payroll taxes for Social Security retirement savings - meaning all Americans will pay a little more - and changes to inheritance and investment taxes.