The stalemate over funding for the Department of Homeland Security (DHS) was broken Wednesday as the Senate voted 98-2 to proceed to legislation that would prevent a partial government shutdown.

Democrats agreed to support the DHS bill after Senate Majority Leader Mitch McConnellAddison (Mitch) Mitchell McConnellThe Memo: Trump's justices look set to restrict abortion Conservatives could force shutdown over Biden vaccine mandate Freedom Caucus urges McConnell to block government funding over vaccine mandates MORE (R-Ky.) stripped out provisions inserted by the House that would reverse President Obama's executive actions on immigration. 

The only votes against proceeding to the bill came from Sens. James InhofeJames (Jim) Mountain InhofeOvernight Defense & National Security — Senate looks to break defense bill stalemate Senate GOP moving toward deal to break defense bill stalemate Overnight Defense & National Security — US, Iran return to negotiating table MORE (R-Okla.) and Jeff SessionsJefferson (Jeff) Beauregard SessionsPress: For Trump endorsement: The more sordid, the better Those predicting Facebook's demise are blowing smoke If bitcoin is 'digital gold,' it should be taxed like gold MORE (R-Ala.).

ADVERTISEMENT

"Democrats will support getting on the House Homeland Security funding bill. In exchange, the leader will provide the only amendment, [it] will be a clean Homeland Security funding substitute," Senate Minority Leader Harry ReidHarry Mason ReidBottom line Voters need to feel the benefit, not just hear the message Schumer-McConnell dial down the debt ceiling drama MORE (D-Nev.) said. 

Democrats had blocked the bill four times before. With a shutdown of DHS set to begin on Saturday, McConnell on Tuesday agreed to split the funding and immigration fights, as Democrats have long demanded.

Reid said earlier Wednesday that the Senate could take a final vote on the DHS bill Thursday. 

"We look forward to working with our Republican colleagues in the next 24 hours to get this done. All eyes now shift to the House of Representatives," Reid said.

If the Senate passes the funding bill, as expected, it would head back to the House, where its fate is unclear.

Speaker John BoehnerJohn Andrew BoehnerFeehery: The next Republican wave is coming Rift widens between business groups and House GOP Juan Williams: Pelosi shows her power MORE (R-Ohio) was silent Wednesday on the "clean" funding plan and said the House would wait for the Senate to act.

“Until the Senate does something, we're in a wait-and-see mode,” BoehnerJohn Andrew BoehnerFeehery: The next Republican wave is coming Rift widens between business groups and House GOP Juan Williams: Pelosi shows her power MORE said.

Several conservative Republicans have criticized the "clean" plan, with many vowing they will not vote to fund agencies that would be carrying out Obama’s immigration order.

McConnell said separating the two proposals would give Democrats who have previously criticized Obama's immigration action a chance to "prove they're serious."

“Many Senate Democrats led their constituents to believe they’d do something. … We’ve since heard excuses for the Democrats' refusal to do so,” McConnell said. “But the time for refusal has passed.”

ADVERTISEMENT

Senate Republicans plan to bring up a separate bill that would block Obama's 2014 executive action, which would provide deferred deportations and work visas to millions of illegal immigrants.

Senate Democrats have made clear they would block motions to move to debate on that proposal, put forward by Sen. Susan CollinsSusan Margaret CollinsBiden signs four bills aimed at helping veterans The Hill's Morning Report - Presented by Facebook - The omicron threat and Biden's plan to beat it Senate GOP blocks defense bill, throwing it into limbo MORE (R-Maine), until the House and Senate both pass funding for Homeland Security.

“We’re happy to debate it. We won’t put procedural barriers in the way of debating it once a fully funded DHS bill is on the president’s desk to be signed. That is our view,” Sen. Charles SchumerChuck SchumerDemocrats wrangle to keep climate priorities in spending bill  Coons says White House could impose border fee for carbon-intensive products The Hill's Morning Report - Presented by Facebook - The omicron threat and Biden's plan to beat it MORE (D-N.Y.), the third-ranking Senate Democrat, told reporters Wednesday.

— Last updated at 4:45 p.m.