With just over an hour to spare, the Senate late Thursday night approved a short-term funding bill to avoid a government shutdown at midnight.

The Senate approved a two-day extension of government funding by voice vote at the end of a dramatic day, when Speaker John BoehnerJohn Andrew BoehnerMomentum for earmarks grows with Dem majority Cannabis company says CBS refused to run its Super Bowl ad advocating for medical marijuana Breaking the impasse on shutdown, border security MORE (R-Ohio) and President Obama muscled a $1.1 trillion “cromnibus” package through the House in a 219-206 vote

ADVERTISEMENT

Shortly before the dramatic vote, the House approved the stopgap funding bill by unanimous consent to give the Senate more time to consider the main funding package.

Senate Majority Leader Harry ReidHarry Mason ReidOvernight Health Care: Trump calls for crackdown on surprise medical bills | Trump officials give religious exemption to foster care program | Uninsured rate at highest level since 2014 | Juul hires former Harry Reid chief of staff How the Clinton machine flooded the FBI with Trump-Russia dirt … until agents bit Senate Republicans eye rules change to speed Trump nominees MORE (D-Nev.) said the Senate would take up the long-term bill as soon as Friday and seek to wrap up work on it quickly.

“The Senate will vote on the long-term spending bill as soon as possible,” Reid said. “As soon as possible could be tomorrow; it could be two days after cloture is filed on it; it could be a lot of different times. But we’re going to work hard to expedite things.”

Both sides of the aisle have expressed disagreement with elements of the cromnibus plan.

Some Republicans don’t support the bill because they say it doesn’t go far enough to stop President Obama’s executive order on immigration, although it only funds the Department of Homeland Security through February, setting up another fight early next year.

Democrats, meanwhile, have blasted riders attached to the plan that would repeal parts of the Dodd-Frank financial reform law, increase campaign contribution limits and stop the District of Columbia from legalizing marijuana.

Despite aggressive lobbying from the White House, only 57 House Democrats supported the measure in a rare rift between Obama and House Minority Leader Nancy Pelosi (D-Calif.). Pelosi said she was "enormously disappointed" with the administration's endorsement of the bill.

There are also objections in the Senate over the cromnibus, which is one reason why Reid had to pass the short-term continuing resolution (CR) to avoid a government shutdown.

Sen. Elizabeth WarrenElizabeth Ann WarrenDem 2020 hopeful Buttigieg touts his experience level, compares it to Trump's Kamala Harris leads 2020 Dem field in second Daily Kos straw poll Sherrod Brown: Dems will lose if 'we have to choose' between speaking to progressive base and workers MORE (D-Mass.) has spearheaded the Democrats' opposition because of the Dodd-Frank reforms, while Sen. Jeff SessionsJefferson (Jeff) Beauregard SessionsWe can end the shutdown with billion — Trump and Democrats already agree on border security Nadler sends Whitaker questions on possible contacts with Trump over Mueller probe Graham angers Dems by digging into Clinton, Obama controversies MORE (R-Ala.) has raised complaints on the immigration issue.

Senate Democrats will likely need some Republicans to support the long-term measure in order for it to pass. 

The Senate is still debating the National Defense Authorization Act (NDAA) and is expected to pass that measure Friday. The chamber could also pass a tax extenders package and confirm several nominations before adjourning for the year.