“We’ve heard this record before, just last month in fact,” said Vanita Gupta, president and CEO of the Leadership Conference on Civil and Human Rights, who spoke on a conference call with other top progressive activists urging Democrats to stand their ground. “It’s simply the same broken record repeating the same broken promises. Democrats must not dance to Mitch McConnell’s tune.”

A bipartisan group of senators sought stronger assurances from McConnell, and by the early afternoon vote, enough Democrats were apparently satisfied. Yet there was little they could do to sugarcoat the outcome: Democrats will come out of the shutdown with nothing more than a commitment to address immigration on the Senate floor in a process that is “neutral and fair to all sides”—not necessarily to pass a bill that will give citizenship to Dreamers, nor a promise that such a bill would survive the more conservative House and earn Trump’s signature.

“While this procedure will not satisfy all on both sides, it’s a way forward,” Schumer said. “I’m confident that we can get the 60 votes in the Senate for a DACA bill. And now there is a real pathway to get a bill on the floor and through the Senate. It is a good solution, and I will vote for it.”

Schumer’s agreement with McConnell did not have the support of House Democratic Leader Nancy Pelosi or the party whip, Steny Hoyer, according to an aide, because Speaker Paul Ryan has not made the same commitment to put an immigration bill up for a vote. But Pelosi and Hoyer didn’t urge all Democrats to vote no, and despite opposition from three-quarters of their caucus, the bill easily cleared the House with most Republicans on board.

In an early indication of the Democratic divide, votes opposing the agreement on Monday came from some of the Senate’s most liberal members as well as those likely to consider presidential bids in 2020, including Senators Elizabeth Warren of Massachusetts, Bernie Sanders of Vermont, Cory Booker of New Jersey, and Kamala Harris of California. “I refuse to put the lives of nearly 700,000 young people in the hands of someone who has repeatedly gone back on his word,” Harris said in a statement, referring to McConnell. “I will do everything in my power to continue to protect Dreamers from deportation.”

In a statement Monday afternoon, Trump said he was pleased that congressional Democrats had “come to their senses and are now willing to fund our great military, border patrol, first responders, and insurance for vulnerable children.” But he offered them little hope that he would move off of his demands for a deal on immigration. “As I have always said, once the government is funded, my administration will work toward solving the problem of very unfair illegal immigration,” the president said. “We will make a long-term deal on immigration if, and only if, it is good for our country.”