This article is from the archive of our partner National Journal

The House narrowly approved a massive spending bill Thursday night just before the government was set to run out of cash, as an unusual coalition of Republicans and Democrats teamed up to pass a measure that drew fierce criticism from both liberals and conservatives.

The $1 trillion spending measure passed 219-206, with 162 Republicans and 57 Democrats in favor. It now heads to the Senate for passage, though because the government is technically set to shut down at midnight, the House was also prepared to pass a short-term resolution to give the other chamber a few days to act.

With President Obama joining all Republican leaders and House Minority Whip Steny Hoyer in support of the package, backers were able to overcome a concerted effort led by House Minority Leader Nancy Pelosi and other key liberals—including Sen. Elizabeth Warren—who complained that the measure was larded up with provisions to help Wall Street, among other special interests. Many on the right also balked at the bill, preferring to punt long-term spending decisions until next year when Republicans control the Senate.

Senate Majority Leader Harry Reid took to the Senate floor shortly after the House passed the omnibus measure, assuring members that the Senate would pass a two-day continuing resolution before midnight in order to keep the government's doors open. "We'll take up the long-term spending bill tomorrow. Senators will want to debate this legislation. They'll have that opportunity," Reid said.

Reid noted that under an agreement with all 100 senators, the chamber cold take up the omnibus spending bill as soon as Friday. Absent such an agreement on timing, the bill could take up to two days, setting up final passage as late as Monday. Reid said that "there's conversations going on now" to expedite the process for the Senate to pass the spending bill, as well as several other must-pass bills including the National Defense Authorization Act.

"We could be out of here fairly quickly, but everyone's going to have to work together to get this done," he said.

House Republicans had narrowly cleared a major hurdle Thursday morning in their race for the exits, passing the rule governing debate for the "CROmnibus" bill by a razor-thin 214-212 margin. After recessing the House for several hours as they hunted for more support, GOP leaders finally called for a vote just after 9 p.m.

As members were being called back into the chamber to vote on the spending bill, it remained unclear whether there actually were enough votes to pass it.

Before concluding a closed-door Democratic Caucus meeting before the vote, Pelosi was not telling her rank-and-file members to vote one way or the other.

"I'm giving you the leverage to do whatever you have to do. We have enough votes to show them never to do this again," she told them, according to a source in the room.

With the possibility still looming that the government would shut down at midnight, the White House stepped up its lobbying of members to support the omnibus bill, and the Office of Management and Budget even held a conference call with federal agencies to discuss contingency planning.

"We continue to believe that time remains for Congress to pass full-year appropriations for FY 2015, and prevent a government shutdown," an OMB official said. "However, out of an abundance of caution, we are working with agencies and taking steps to prepare for all contingencies, including a potential lapse in funding."

Leaders of both parties huddled with their members in groups large and small Thursday afternoon and evening, trying to gauge support for the spending bill that is so big it has provisions disliked by everyone.

Rep. Chaka Fattah, a senior member of the House Appropriations Committee, said the bill should be returned to its original form without campaign finance language boosting donation limits to political parties and the provision altering language in the Dodd-Frank financial services bill, though Republicans have vowed not to change the bill at that point.

White House Chief of Staff Denis McDonough addressed House Democrats on Thursday night, mawking what Fattah called a "very strong pitch."

Rep. Steve Israel of New York said McDonough made the case to House Democrats that the economy needs the consistency and the certainty of a one-year spending package.

"There are some people who really are not going to let Elizabeth Warren get to the left of them," said retiring Rep. Jim Moran, referring to the Massachusetts Democrat who has been especially critical of the bill.

One of the leaders of the opposition was Rep. Maxine Waters, the top Democrat on the Financial Services Committee. She was aided in her whip operation against the bill by more than two dozen members.

The rule passed earlier Thursday only after two Republicans, Reps. Kerry Bentivolio and Marlin Stutzman, were persuaded by leaders to switch their votes from no to yes. Every Democrat voted against the rule.

Asked about the spending bill GOP leaders might bring up if the omnibus failed, House Majority Leader Kevin McCarthy avoided answering the question. "Why do Democrats want to shut down the government?" he asked.

Boehner was more dramatic later Thursday morning, telling reporters: "If we don't get finished today, we're going to be here until Christmas. You all know how this process works."

The White House gave the omnibus bill a key boost Thursday, announcing that the Obama administration supports its passage despite "the inclusion of ideological and special interest riders" as well as the decision to offer only short-term funding for the Department of Homeland Security. That cover from Obama has likely made it easier for at least some congressional Democrats to back the measure. The White House has also been calling House Democrats about the bill, according to sources.

White House press secretary Josh Earnest said at Thursday's press briefing that if the bill reaches Obama's desk, "he will sign it."

This story has been updated throughout the day.


Rachel Roubein, Sarah Mimms, and James Oliphant contributed to this article

This article is from the archive of our partner National Journal.

We want to hear what you think about this article. Submit a letter to the editor or write to letters@theatlantic.com.