The measure, which funds the government through February 8, cleared the Senate in an 81-18 vote Monday afternoon, and later passed the House of Representatives in a 266-150 vote.
But the White House appeared in no mood for bipartisanship or magnanimity after a shutdown that overshadowed Trump's first anniversary in office.
The United States Government is close to reopening, with the Senate passing a short-term funding vote on the condition that a bill protecting undocumented immigrants, known as dreamers, be tabled in 17 days.
Democrats had been holding out for a firmer commitment to provide protections for some 700,000 younger immigrants brought illegally to the U.S. as children. "We will vote today to reopen the government to continue negotiating a global agreement", Schumer said on the Senate floor Monday morning.
During a speech on the Senate floor before the vote, Senate Minority Leader Chuck Schumer said Democrats would vote for the bill. "I would hope there would be cooperation on these matters in advance of yet another funding deadline".
The decision by Democrats to end the shutdown has divided the party, with some members saying they received enough of a public assurance from Senate Majority Leader Mitch McConnell to hold him accountable and others saying that the party caved.
Channeling rage from immigration activists, the possible 2020 candidates were highly critical of their leaders' willingness to trust that Senate Majority Leader Mitch McConnell, R-Ky., will allow an immigration vote after February 8 if senators can not strike a deal before then. One independent and two Republicans were part of the largely Democratic opposition to the temporary spending package. "We believe that you need to start in the House and it has been my position consistently, you start in the House with the most conservative bill, you send it to the Senate, it gets moderated in the Senate, and then comes back".
'F1 car' Liverpool break down in Swansea
The likes of Ragnar Klavan, James Milner and Trent-Alexander Arnold have done well when they've been given the chance. Swansea have seemed dead and buried as relegation certainties for most of this season.
The bill passed the Senate with an 81-18 margin. "They have been waiting far too long to live securely in the only place they have ever called home". These supporters are upset the government was reopened without a permanent DACA deal in place.
Both senators from Colorado, Republican Cory Gardner and Democrat Michael Bennet, voted yes.
Frank Sharry, executive director of America's Voice, a national immigration advocacy group, echoing criticisms made by other liberal groups said "last week, I was moved to tears of joy when Democrats stood up and fought for progressive values and for Dreamers".
"I'm disappointed with the conversation that suggests a false choice", said Democratic Sen. Now I want a big win for everyone, including Republicans, Democrats and DACA, but especially for our Great Military and Border Security.
"As I have always said, once the Government is funded, my Administration will work toward solving the problem of very unfair illegal immigration", Trump said. At issue is the Deferred Action for Childhood Arrivals (DACA) program, which protects almost 700,000 unauthorized immigrants who came to the USA as minors, or "Dreamers", who are at risk of deportation.
Schumer had faulted Trump for the stalemate, noting Monday that the president twice rescinded a compromise deal he agreed to on Friday. "I'm looking for something that President Trump supports, and he has not yet indicated what measure he is willing to sign", he said.