A three-day government closure ended Monday when the House cleared a bill for President Trump’s signature that will fund the government until Feb. 8.

While the government closure was short and relatively limited in impact, the deal only lasts 17 days and has set the clock on another showdown in less than three weeks.

The fight will center on immigration reform and protection for so-called Dreamers who came to the United States illegally as children.

The final vote was 266-150 in favor of reopening the government.

After the vote, House lawmakers plan to leave town for the remainder of the week for a recess, or scheduled district work period planned long in advance.

Many Democrats voted against the bill, including the Democratic leadership, who, after fielding harsh criticism from their progressive base, moved to defend their party.

"While today’s vote ends the Trump Shutdown, it does not diminish our leverage," Pelosi said on the House floor before the vote. ”While Members may vote differently on this bill, we are unified in our determination to meet the needs of the American people with our Better Deal: Better Jobs, Better Wages, Better Future."

Democrats wanted the Dreamers provision in addition to extra money for community health centers, disaster relief aid and other provisions.

“It does not guarantee that Congress will address the issues,” Minority Whip Steny Hoyer, D-Calif., said.

Majority Leader Kevin McCarthy, R-Calif., who is a key negotiator working with Senate Republicans and Democrats as well as Trump administration officials, said work would now resume on an immigration deal.

“Despite this political drama, I remain eager to get back to the table and put this all behind us,” McCarthy said.

House Speaker Paul Ryan, R-Wis., said lawmakers in both parties need to get to work on a deal to fully fund the government for the remainder of the fiscal year, as well as a deal on immigration.

“This shutdown didn't need to happen,” Ryan said. “There are no winners here today. This is not a moment to pat ourselves on the back. Not even close. We need to heed the lessons that just happened here.”