After three days of contentious negotiations and name-calling, Congress voted to end a government shutdown when Democrats agreed to trust the word of Majority Leader Mitch McConnell.
President Donald Trump signed the spending bill today.
The impact of the shutdown, which began on Friday, was minimal, leaving hundreds of thousands of federal workers unsure of what the week would bring - but apparently stretching into just one workday.
Lawmakers agreed to fund the government through to February 8 after Kentucky Senator McConnell promised to address the status of young immigrants called "dreamers" who were brought to this country illegally as children.
The pact came at a time when trust has been in short supply on Capitol Hill - and it unnerved liberal activists who aren't sure McConnell will fulfill his promise.
McConnell delivered a carefully worded speech on the Senate floor, stating that it was his "intention" to address the dreamer issue, whether in the next spending bill or thereafter. He did not offer a specific promise to protect dreamers, and he suggested he would offer nothing if government shuts down again, but he said he would follow an even-handed process.
Even if such a bill passed the Senate, it remained entirely unclear how it would fare in the more conservative House.
But it was enough for 33 Senate Democrats, who joined 48 Republicans to break an impasse that cleared the way for federal agencies to reopen.
"Trust but verify, is my motto," said Senator Angus King, an independent from Maine who caucuses with Democrats. "He's made this commitment publicly, he made it on the floor of the Senate. He was much more specific this morning than he was last night, and frankly this is an important opportunity for him to demonstrate that he will carry through."
Senate Minority Leader Charles Schumer endorsed the plan, which also reauthorises the Children's Health Insurance Program for six years and rolls back several healthcare taxes. Today the House quickly passed it, sending it to Trump for his signature.
"I am pleased that Democrats in Congress have come to their senses," Trump said in a statement. He vowed to "work toward solving the problem of very unfair illegal immigration".
But for some Democrats, including senators, the day brought an unsatisfying conclusion to a risky gambit to force Republicans to help protect dreamers, whose futures were cast into doubt when Trump canceled an Obama-era programme known as Deferred Action for Childhood Arrivals.
Some Democrats argued that McConnell offered no new concessions on immigration. Others regretted giving up the leverage they believed they had in the government spending talks. Others said they simply did not trust him - or his party - to follow through.
"He did not make a commitment," said California Senator Kamala Harris, one 16 Democrats who voted to block the bill.
Republicans didn't make those Democrats feel much better. Arkansas Senator Tom Cotton, an immigration hardliner, said he didn't think McConnell was making any more of a promise than he had last week.
"He has not changed since Friday," Cotton said. "He has not changed since September."
Even South Carolina leader Lindsey Graham, a Republican and proponent of a Daca deal who helped negotiate today's vote, called into question whether anyone can trust anyone on Capitol Hill.
"Nobody trusts anybody around here," Graham said just before the vote. "And most Americans don't trust any of us."
Nonetheless, many Democrats and Republicans, including Graham, agreed that McConnell had given some ground in agreeing to pursue an immigration bill to address Daca that both sides could amend.
Some Democrats said they voted for the plan because they were growing antsy about continuing a shutdown with little optimism about resolving the immigration deadlock in the coming days.
"I just think our job is to make sure government works for people and their lives get better and that's what I tried to do," said Indiana Senator Joe Donnelly, who had voted against the shutdown to begin with. "Our efforts helped bring the two leaders together, helped make sure that they talked and helped make sure that a deal got done."
Others did so because about a dozen Republicans had agreed to work with them on immigration policy. They agreed that since Democrats deeply mistrust McConnell, perhaps they could now gang up on him with the help of those skeptical Republicans.
"I'm not trusting in Mitch McConnell, I'm trusting in Susan Collins and these folks who've really gone out on a limb. We've got to start from somewhere," said Illinois Senator Tammy Duckworth, a Democrat, who voted for the spending bill.
The deal, in the end, was to trade Democratic support for reopening the government for a commitment by Republicans to address the status of young undocumented immigrants in February, if not sooner.
Republican Senators Susan Collins (Maine), Jeff Flake (Arizona) and Graham helped broker the agreement, with Flake and Graham shuttling between huddles with McConnell and Democrat Schumer (New York), for much of the weekend.
During bipartisan meetings in Collins' office, senators used a device most commonly found in elementary school classrooms - a talking stick - to avoid unproductive crosstalk. They eventually switched to a basketball, according to West Virginia Senator Joe Manchin because it was easier to toss back and forth.
After the vote, some liberal activists and lawmakers fired off news releases slamming the arrangement. One called it a "vague promise". Another labelled it a "fingers-crossed bargain".
Angel Padilla, policy director of Indivisible, wondered why Democrats were taking McConnell at his word.
"For months, Democratic leadership has reassured Dreamers that Democrats would use all their leverage to get the Dream Act done," Padilla lamented. "Indivisible groups will be paying attention and will remember who follows through on their commitments to Dreamers today."
Trust between Republicans and Democrats has been eroding rapidly in recent weeks and months.
After Durbin confirmed that Trump had referred to Haiti and African nations as "s********* countries" in a recent Oval Office meeting with lawmakers, Cotton and Georgia Senator David Perdue, who were also in the meeting, disputed his account.
Intraparty tensions have also been on the rise. Graham has grown frustrated with Cotton and White House senior adviser Stephen Miller, who hold harder line views on immigration and border security. Cotton and the White House have hit back against Graham.
Further complicating matters, lawmakers are still unclear about what kind of immigration bill Trump wants to sign. He has offered mixed signals about whether he would back a measure akin to what centrist Republican and Democrats favour, leaving some lawmakers not to trust his word, either.
Even McConnell suggested uncertainty, during last week's negotiations, about what the president would do.
"What I want to see is an outcome, and an outcome involves the signature of the president of the United States," McConnell said. "So what I'm waiting for in terms of making a decision about floor time is are we dealing with an issue that has a chance to become law?"
The agreement reached today merely set the parameters of a debate and did not specify the substance of any potential legislation, leaving the fate of the immigration debate in just as unclear a position as before.
Multiple proposals to address the legal status of dreamers have been introduced by Democrats and Republicans in the past year, including the Dream Act, which would create ways for more than 1 million eligible dreamers to apply for citizenship. Other versions of the bill would shrink the pool of eligibility.
With the negotiations focused on the Senate, Trump remained on the sidelines for much of the past few days, intermittently interjecting on Twitter to criticise Democrats and press Republican to change the rules of the Senate to make it easier to pass their bill if the standoff was not quickly resolved.
The three-day stalemate exposed a growing rift between two groups of Democratic senators: those facing tough re-election campaigns in states Trump won, and those courting liberal voters ahead of possible 2020 presidential bids.
In addition to Harris, other potential White House contenders who voted against the bill included Senators. Bernie Sanders (Vermont), Kirsten Gillibrand, (New York), Elizabeth Warren, (Massachusetts), and Cory Booker, (New Jersey).
The vote on final passage in the Senate vote was 81-18. Two Republicans, Senators Paul and Mike Lee (Utah), voted no. In the House, the measure passed 266-150.
Lawmakers in both chambers and the White House still have to hash out a longer term deal on military and domestic spending over the next fee weeks, as they face yet another cliff on February 8.
Ahead of the vote to end debate, Schumer warned McConnell to keep his word.
"I expect the majority leader to fulfill his commitment to the Senate, to me and to the bipartisan group, and abide by this agreement. If he does not . . . he will have breached the trust of not only the Democratic senators, but members of his own party as well," Schumer said.