A bill to reopen the federal government and fund its operations until Feb. 8 cleared a final hurdle in the Senate on Monday, setting the stage for a quick turnaround to the House, and the prospect that the government shutdown could be over as soon as Monday evening.

The final vote on the bill was 81 yeas, to 18 nays. Moderate Democrats who had previously voted against a spending bill flipped on Monday, three days into the government shutdown.

Senate Majority Leader Mitch McConnell on Monday morning said he intends to bring immigration issues up for debate before Feb. 8. Later, Senate Minority Leader Chuck Schumer confirmed an agreement to reopen the government and tackle immigration within three weeks.

"We will vote today to reopen the government to continue negotiating a global agreement [on immigration reform] with the commitment that if an agreement isn't reached by February the 8th, the Senate will immediately proceed to consideration of legislation dealing with DACA," Schumer said on the Senate floor. "We expect that a bipartisan bill on DACA will receive fair consideration and an up or down vote on the floor."

The next step in reopening the government is a House vote, likely to happen early Monday evening. After that, the bill would go to President Donald Trump's desk for signature.

Trump has been largely absent from negotiations for the past three days, speaking to congressional Republicans by phone, but refusing to speak with Democrats. An email sent to a White House aide Monday seeking comment on the Senate vote was returned with an automatic out-of-office reply.

"Unfortunately, I am out of the office today because congressional Democrats are holding government funding—including funding for our troops and other national security priorities—hostage to an unrelated immigration debate," read the email.

Hundreds of thousands of federal employees also remained on furlough Monday afternoon, even as prospects improved significantly that they would return to work on Tuesday.