WASHINGTON, D.C. -- A White House official says President Donald Trump has signed a bill funding the government through Feb. 8, ending the 69-hour shutdown.
Congress approved a bipartisan agreement to re-open the federal government after a three-day partial shutdown.
The House approved the bill, 266-150, hours after the Senate backed it, 81-18.
The votes set the stage for hundreds of thousands of federal workers to return Tuesday, cutting short what could have become a messy and costly impasse.
Senate Democrats reluctantly voted in favor of the bill, relenting in return for Republican assurances that the Senate will soon take up the plight of young immigrant "dreamers" and other contentious issues. Democrats from states won by Trump in 2016 broke with progressives looking to satisfy liberals' and immigrants' demands.
Earlier Monday, President Trump said he is pleased that congressional Democrats "have come to their senses" and abandoned their filibuster that shut down the federal government. Trump says his administration will make a long-term immigration deal "if and only if it's good for our country."
Trump issued a statement Monday afternoon after roughly 25 senators from both parties helped negotiate an end to the federal government shutdown. It was read by spokeswoman Sarah Huckabee Sanders at a press briefing.
Trump said he was glad the government will be funded. He continued: "Once the government is funded, my administration will work toward solving the problem of very unfair illegal immigration."
He added: "We will make a long term deal on immigration if and only if it's good for our country."
The Senate vote was moved from 1 a.m. ET Monday to noon after it became clear Democrats would block the spending bill over disagreements on a variety of issues, most notably what do about young people affected by DACA.
Senate Majority Whip John Cornyn of Texas said he thought Schumer of New York agreed to push back the vote to give his caucus "a chance to chew" on a GOP proposal to break the impasse.
"It's better to have a successful vote tomorrow at noon than a failed vote tonight," Cornyn told reporters.
A senior Republican aide told CNN Monday that McConnell wasn't planning to provide any firmer commitment on immigration than he already has.
"If that's not enough for Democrats, then we're in this for the long haul," the aide said. "If it's enough for Flake, and Graham, and Collins -- who want this done as much as they do -- it should be enough for Democrats."
Flake said Sunday night he was now a "yes" on the funding bill and it was his hope that six or seven more moderate Democrats would come on board to get the continuing resolution over the finish line -- to 60 votes -- to end the shutdown.
He said the Democrats still want something tangible on DACA but said it was problematic because it could run into the February 8 funding deadline.
He argued that they won a concession from McConnell that he isn't requiring President Donald Trump to sign off before an immigration bill moves to the floor.
"For the first time, we have the majority leader move off of we can only move something if the President agrees," Flake told reporters.
Earlier Sunday, Trump called for Senate Republicans to change the chamber's rules to resolve the funding impasse as the government shutdown continued into its second day. He tweeted a call for McConnell to invoke the so-called "nuclear option" and thereby remove leverage for Senate Democrats.
Senate rules impose a threshold of 60 votes to break a filibuster, and Senate Republicans currently hold a slim majority of 51 votes, meaning even if they can unite their members, they need nine more votes to end debate. The White House is calling for the Senate to change its rules and move the threshold to a simple majority of 51 votes.
A spokesman for McConnell said in response to the tweet that the Senate Republican Conference does not support changing the 60-vote rule, a reiteration of Republican Senate leadership's already-stated opposition to the move Trump has called for over the past year.
Trump spent the morning in the residence of the White House, following coverage of the shutdown and speaking with Republican leaders on the phone, a senior administration official said. One aide described him as "restless" -- after spending a rare weekend entirely at the White House.
Over the weekend, Trump spoke with Republicans and a laundry list of informal advisers. He told some of his aides that he'd like to be more involved in the negotiations, but he was told it was more prudent for lawmakers to strike a deal among themselves.