Post updated at 9:38 p.m. ET.
A massive federal spending bill finally won the House's approval Thursday night, less than 3 hours before a midnight deadline that threatened a federal shutdown. The measure's fate had been in doubt after it narrowly survived a rules vote earlier in the day. The final tally was 219-206.
Faced with uncertainty over Congress meeting its deadline to approve a bill, the House's leadership scheduled a vote on both the long-term spending bill and a stop-gap continuing resolution. It passed a two-day resolution in order to give the Senate time to consider the spending bill.
The $1.014 trillion spending measure has been criticized for easing rules on campaign finance and the banking industry. But its supporters say it's also a bipartisan deal that would fund most of the U.S. government until next October.
Rep. Gerry Connolly, D-Va., called it a "hold your nose vote."
The final tally for the spending bill was starkly different from that in an earlier procedural vote.
Around mid-day, no Democrat voted in favor. But after the final vote was called shortly after 9 p.m. ET, more than 30 Democrats voted for the spending bill. In contrast, more than twice as many Republicans voted against it in the final tally than had earlier in the day.
We've updated this text; from our earlier post:
Disagreement over the bill forced the final vote to be delayed for hours Thursday. It also created unlikely alliances: The White House joined with House Speaker John Boehner to rally support for the measure, most House Democrats agreed with a small group of Republicans – including Rep. Michele Bachmann – that the bill should be rejected.
You can read the bill, broken down by government agency, on the House Appropriations Committee site.
The legislation was nicknamed "cromnibus" because it combines the traditional sweeping scope of an omnibus spending bill with a continuing resolution (CR). While it would fund most of the government until the next financial year, the Department of Homeland Security would only be funded through February, in a move that seeks to limit President Obama's recent executive actions on immigration.
Another part of the measure would vastly increase the maximum amount of money a contributor can give to a political party.
"Right now a person can give just under $100,000 a year to a party through its various committees," NPR's Ailsa Chang reports on All Things Considered. "And under this bill, that cap goes up to almost $800,000."
Shortly after noon Thursday, the bill squeezed by in the rules vote, 214-212, after Republican leaders, including Speaker John Boehner and Chief Deputy Whip Patrick McHenry, walked the floor to bolster support, NPR's Juana Summers reports.
After no Democrats voted in favor and more than a dozen Republicans defected to vote against, the House was adjourned so Boehner could organize his support.
Rep. Nancy Pelosi spoke out against the bill in the House earlier Thursday, sharply criticizing it for altering rules in the Dodd-Frank financial reform law to let banks place both standard accounts and accounts that handle riskier derivative trades under the protection of the Federal Deposit Insurance Corp.
"I was so really heartbroken ... to see the taint that was placed on this valuable appropriations bill from on high," Pelosi said. She told her colleagues that anyone voting for the legislation would be putting their name next to what she called "a ransom" and "blackmail" that would profit Wall Street.
Discussing the opposition, Boehner said the provisions were "agreed to in this bill on a bipartisan, bicameral agreement. So while some members may have objected to this issue or that issue, nobody did this unilaterally. We've done this in a bipartisan fashion, and frankly it's a good bill."
Others have criticized the bill for containing provisions such as one that seeks to block Washington, D.C.'s bid to legalize the recreational use of marijuana — as more than 65 percent of the federal district's voters decided to do last month.
The Hill tells us who voted with the Democrats against the spending measure earlier Thursday:
"The 16 Republican defectors were Reps. Justin Amash (Mich.), Michele Bachmann (Minn.), Dave Brat (Va.), Mo Brooks (Ala.), Paul Broun (Ga.), Louie Gohmert (Texas), Paul Gosar (Ariz.), Tim Huelskamp (Kan.), Walter Jones (N.C.), Jim Jordan (Ohio), Steve King (Iowa), Raúl Labrador (Idaho), Thomas Massie (Ky.), Bill Posey (Fla.), Matt Salmon (Ariz.) and Steve Stockman (Texas)."
Read more about 'Cromnibus' Spending Bill Passes, Just Hours Before Deadline