UPDATED: In a surprise late night vote, the House passed legislation to avoid the fiscal cliff, concurring with the agreement negotiated in the Senate.
The vote was 257-167 -- a bipartisan vote, though it was led overwhelmingly by Democratic support.
Among Republicans, the vote was 151-86 against the compromise. John Boehner and Paul Ryan were among the minority of Republicans who supported the compromise; Eric Cantor voted no. That led to immediate speculation among pundits that Boehner's position as speaker of the House could be in doubt in the next Congress.
Weary lawmakers hoped to avoid a national "fiscal cliff" of major tax increases and spending cuts in a New Year's Night culmination of a struggle that tested divided government to the limit.
Passage sent the measure to President Barack Obama for his signature and handed him a political triumph less than two months after he secured re-election while campaigning for higher taxes on the wealthy.
"Everybody worked very hard on it and I appreciate it," Obama said, in a late night appearance at the White House.
Obama, flanked by Vice President Joseph Biden, who helped broker the compromise, said he would have preferred a grand compromise but that there was not enough support for it. He emphasized the need for deficit reduction, but also for stimulus spending, and called for a balanced approach. "We can not cut our way to prosperity," he said.
Obama also warned lawmakers that he would not tolerate brinksmanship over the debt ceiling later this winter. The global economy, he said, would face terrible consequences if the U.S. government did not pay its bills, he said. He insisted that Congress must authorize the government to pay bills for spending that the Congress already approved.
"We can't go down that path again," the president said.
The extraordinary late-night House vote was coming nearly 24 hours after Senate action spilled over from New Year's Eve into the pre-dawn hours of 2013.
In addition to neutralizing middle class tax increases and spending cuts that technically took effect Monday at midnight, the legislation raises tax rates on incomes over $400,000 for individuals and $450,000 for couples. Remarkably, in a party that swore off tax increases two decades ago, dozens of Republicans supported the bill at both ends of the Capitol.
Republicans did their best to minimize the tax increases in the measure.
Rep. David Dreier, R-Calif., in the final days of a 32-year-career in Congress, said the legislation was "not the grand bargain we'd hoped for" to reduce federal deficits. "But it is an essential bridge to what I hope will be a comprehensive and long-term solution. It will bring us back from the edge of the fiscal cliff and implement tax cuts for 99% of taxpayers."
Declared Rep. Marcy Kaptur, D-Ohio: "This is a great victory for the middle class, whose taxes will not go up tomorrow."
The bill would also prevent an expiration of extended unemployment benefits for an estimated two million jobless, block a 27 percent cut in fees for doctors who treat Medicare patients, stop a $900 pay increase for lawmakers from taking effect in March and head off a threatened spike in milk prices.
It would stop $24 billion in spending cuts set to take effect over the next two months, although only about half of that total would be offset with spending reductions elsewhere in the budget.
Even with enactment of the legislation, taxes are on the rise for millions.
A 2 percentage point temporary cut in the Social Security payroll tax, originally enacted two years ago to stimulate the economy, expired with the end of 2012. Neither Obama nor Republicans made a significant effort to extend it.
The fiscal cliff measure had cleared the Senate on a lopsided pre-dawn New Year's vote of 89-8, and House Republicans spent much of the day struggling to escape a political corner they found themselves in.
"I personally hate it," Rep. John Campbell of California, said of the measure, giving voice to the concern of many Republicans that it did little or nothing to cut spending.
"The speaker the day after the election said we would give on taxes and we have. But we wanted spending cuts. This bill has spending increases. Are you kidding me? So we get tax increases and spending increases? Come on."
House Majority Leader Eric Cantor told reporters at one point, "I do not support the bill. We are looking, though, for the best path forward."
Within hours, Republicans abandoned demands for changes and agreed to a simple yes-or-no vote on the Senate-passed bill.
They feared that otherwise the Senate would refuse to consider any alterations, sending the bill into limbo and saddling Republicans with the blame for a whopping middle class tax increase. One Senate Democratic leadership aide said Majority Leader Harry Reid would "absolutely not take up the bill" if the House changed it. The aide spoke on condition of anonymity, citing a requirement to keep internal deliberations private.
Despite Cantor's remarks, Speaker John Boehner took no public position on the bill as he sought to negotiate a conclusion to the final crisis of a two-year term full of them.
The brief insurrection wasn't the first time that the tea party-infused House Republican majority has rebelled against the party establishment since the GOP took control of the chamber 24 months ago. But with the two-year term set to end Thursday at noon, it was likely the last. And as was true in earlier cases of a threatened default and government shutdown, the brinkmanship came on a matter of economic urgency, leaving the party open to a public backlash if tax increases do take effect on tens of millions.
The economic as well as political stakes were considerable.
Economists have warned that without action by Congress, the tax increases and spending cuts that technically took effect with the turn of the new year at midnight could send the economy into recession.
The Senate-passed bill was designed to prevent that while providing for tax increases at upper incomes, as Obama campaigned for in his successful bid for a second term.
The non-partisan Congressional Budget Office said the measure would add nearly $4 trillion over a decade to federal deficits, a calculation that assumed taxes would otherwise have risen on taxpayers at all income levels. There was little or no evident concern among Republicans on that point, presumably because of their belief that tax cuts pay for themselves by expanding economic growth and do not cause deficits to rise.
The relative paucity of spending cuts was a sticking point with many House Republicans. Among other items, the extension of unemployment benefits costs $30 billion, and is not offset by savings elsewhere.
Others said unhappiness over spending outweighed fears that the financial markets will plunge on Wednesday if the fiscal cliff hasn't been averted.
"There's a concern about the markets, but there's a bigger concern, which is getting this right, which is something we haven't been very good at over the past two years," said Rep. Steve LaTourette of Ohio.
House Democrats met privately with Biden for their review of the measure, and the party's leader, Rep. Nancy Pelosi of California, said afterward that Boehner should permit a vote.
"That is what we expect. That is what the American people deserve," she said.
For all the struggle involved in the legislation, even its passage would merely clear the way for another round of controversy almost as soon as the new Congress convenes.
With the Treasury expected to need an expansion in borrowing authority by early spring, and funding authority for most government programs set to expire in late March, Republicans have made it clear they intend to use those events as leverage with the administration to win savings from Medicare and other government benefit programs.
McConnell said as much moments before the 2 a.m. Tuesday vote in the Senate - two hours after the advertised "cliff" deadline.
"We've taken care of the revenue side of this debate. Now it's time to get serious about reducing Washington's out-of-control spending," he said. "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."
The 89-8 vote in the Senate was unexpectedly lopsided.
Despite grumbling from liberals that Obama had given way too much in the bargaining, only three Democrats opposed the measure.
Among the Republican supporters were Sen. Pat Toomey of Pennsylvania, an ardent opponent of tax increases, as well as Sen. Ron Johnson of Wisconsin, elected to his seat two years ago with tea party support.
It marked the first time in two decades that Republicans willingly supported higher taxes, in this case on incomes over $400,000 for individuals and $450,000 for couples. Taxes also would rise on estates greater than $5 million in size, and on capital gains and dividend income made by the wealthy.