Senate Majority Leader Mitch McConnell of Ky., walks back to his office on Capitol Hill in Washington, Monday, Jan. 22, 2018. Senate leaders have reached an agreement to advance a bill ending government shutdown. (AP Photo/Pablo Martinez Monsivais)
Senate Majority Leader Mitch McConnell of Ky., walks back to his office on Capitol Hill in Washington, Monday, Jan. 22, 2018. Senate leaders have reached an agreement to advance a bill ending government shutdown. (AP Photo/Pablo Martinez Monsivais) Credit: Pablo Martinez Monsivais

WASHINGTON — President Donald Trump signed a bill reopening the government late Monday, ending a 69-hour display of partisan dysfunction after Democrats reluctantly voted to temporarily pay for resumed operations. They relented in return for Republican assurances that the Senate will soon take up the plight of young immigrant “dreamers” and other contentious issues.

The vote set the stage for hundreds of thousands of federal workers to return on Tuesday, cutting short what could have become a messy and costly impasse. The House approved the measure shortly thereafter, and President Donald Trump later signed it behind closed doors at the White House.

But by relenting, the Democrats prompted a backlash from immigration activists and liberal base supporters who wanted them to fight longer and harder for legislation to protect from deportation the 700,000 or so younger immigrants who were brought to the country as children and now are here illegally.

Democrats climbed onboard after two days of negotiations that ended with new assurances from Senate Majority Leader Mitch McConnell that the Senate would consider immigration proposals in the coming weeks. But there were deep divides in the Democratic caucus over strategy, as red-state lawmakers fighting for their survival broke with progressives looking to satisfy liberals’ and immigrants’ demands.

Under the agreement, Democrats provided enough votes to pass the stopgap spending measure keeping the government open until Feb. 8. In return, McConnell agreed to resume negotiations over the future of the dreamers, border security, military spending and other budget debates. If those talks don’t yield a deal in the next three weeks, the Republican promised to allow the Senate to debate an immigration proposal — even if it’s one crafted by a bipartisan group and does not have the backing of the leadership and the White House, lawmakers said. McConnell had previously said he would bring a deal to a vote only if President Donald Trump supported it.

Sixty votes were needed to end the Democrats’ filibuster, and the party’s senators provided 33 of the 81 the measure got. Eighteen senators, including members of both parties, were opposed. Hours later the Senate passed the final bill by the same 81-18 vote, sending it to the House, which quickly voted its approval and sent the measure on to President Donald Trump.

White House press secretary Sarah Sanders predicted that operations would return to normal by Tuesday morning.

The plan is far from what many activists and Democrats hoped when they decided to use the budget deadline as leverage. It doesn’t tie the immigration vote to another piece of legislation, a tactic often used to build momentum. It also doesn’t address support for an immigration plan in the House, where opposition to extending the protections for the dreamers is far stronger.

The short-term spending measure means both sides may wind up in a shutdown stalemate again in three weeks.

Senate Democratic leader Chuck Schumer lent his backing to the agreement during a speech on the chamber’s floor. “Now there is a real pathway to get a bill on the floor and through the Senate,” he said of legislation to halt any deportation efforts aimed at the younger immigrants.

The White House downplayed McConnell’s commitment, and said Democrats caved under pressure. “They blinked,” principal deputy press secretary Raj Shah told CNN. In a statement, Trump said he’s open to immigration deal only if it is “good for our country.”

Immigration activists and other groups harshly criticized the deal reached by the Democratic leadership.

Cristina Jimenez, executive director of United We Dream, said the members of the group are “outraged.” She added that senators who voted Monday in favor of the deal “are not resisting Trump, they are enablers.”

Other groups such as the American Civil Liberties Union expressed disappointment and shared similar criticism.

A block of liberal Democrats — some of them 2020 presidential hopefuls — stuck to their opposition. Sens. Elizabeth Warren and Edward Markey of Massachusetts, Dianne Feinstein of California, Kirsten Gillibrand of New York and Cory Booker of New Jersey voted no, as did Independent Bernie Sanders of Vermont.

Feinstein said she wasn’t persuaded by McConnell’s assurances and did not know how a proposal to protect the more than 700,000 younger immigrants would fare in the House.

Democratic Sen. Jon Tester of Montana voted no on the procedural motion to re-open the government — the only no vote among 10 incumbent Democrats facing re-election this year in states won by Trump in 2016. Tester said in a statement that the 17-day budget did not include any funding for community health centers that are important to his rural state, nor did the deal include additional resources for border security.

The short-term funding measure includes a six-year reauthorization of the children’s health insurance program, which provides coverage for millions of young people in families with modest incomes. It also includes $31 billion in tax cuts, including a delay in implementing a tax on medical devices.

The votes came as most government offices cut back drastically or even closed on Monday, as the major effects of the shutdown were first being felt with the beginning of the workweek.

Local shutdown effects

The votes came as most government offices cut back drastically or even closed on Monday, as the major effects of the shutdown were first being felt with the beginning of the workweek.

“We’re just here to hold down the fort until this gets resolved,” said Shirley Arriaga, congressional liaison for U.S. Rep. Richard Neal in his Springfield office, speaking Monday morning on the third day of the federal government shutdown, and just hours before a compromise was reached to keep the government open until Feb. 8.

Arriaga said she and others continued to work from Neal’s Springfield, Pittsfield and Washington offices to provide services to and answer questions for the Democrat’s constituents.

Both the U.S. Fish & Wildlife Service headquarters in Hadley and the U.S. Department of Agriculture Rural Development offices in Amherst and Hadley were closed Monday.

At U.S. Fish & Wildlife, the main answering machine had a message that the office was shuttered “due to the current lapse of federal appropriations.” Both that message, and messages on the answering machines for individual employees, referred people to the Department of Interior’s website.

At the USDA Rural Development office, the message said that all employees were on furlough due to the lapse in federal funding, and that no one would be checking voicemails.

“We will return all messages once funding is restored and employees are back in the office,” the answering machine said.

At the University of Massachusetts, spokesman Edward Blaguszewski said his recollections of the last federal shutdown, in October 2013, is that there would be no immediate impact, but that eventually the processing of federal grants, and applications for them by professors and researchers, might be delayed/

“We are all worried and we all want the federal government to get back up and running,” Blaguszewski said.

Staff writer Scott Merzbach contributed to this report.