Senate Democrats joined Republicans to end a government shutdown Monday, with a promise to move on immigration bills including support for undocumented people brought to the U.S. as children.

On the third day of the shutdown, the Senate voted 81-18 on a short-term continuing resolution to fund the government through Feb. 8, in part based on a promise from Senate Majority Leader Mitch McConnell to hold a debate over immigration measures soon.

“We will vote today to reopen the government,” Senate Democratic leader Chuck Schumer said shortly after noon.

The shutdown began in part because congressional Democrats wanted to use the routine need to pass a bill to fund the government to force the Republican majority to pass legislation that would protect the 800,000 undocumented immigrants who had been protected by Deferred Action for Childhood Arrivals, an Obama-era program that the Trump Administration is winding down.

President Donald Trump has said that he would like to protect the Dreamers with a “bill of love,” but the White House repeatedly rejected Democratic offers to compromise by spending more on border security and a wall on the Mexican border.

The government spending measure required 60 votes in the Senate, where Republicans hold a narrow 51-49 majority, meaning they needed Democratic cooperation to pass the bill.

Get our Politics Newsletter. The headlines out of Washington never seem to slow. Subscribe to The D.C. Brief to make sense of what matters most. Please enter a valid email address. Sign Up Now Check the box if you do not wish to receive promotional offers via email from TIME. You can unsubscribe at any time. By signing up you are agreeing to our Terms of Use and Privacy Policy . This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply. Thank you! For your security, we've sent a confirmation email to the address you entered. Click the link to confirm your subscription and begin receiving our newsletters. If you don't get the confirmation within 10 minutes, please check your spam folder.

Contact us at letters@time.com.