However, the spending deal has yet to be passed by Congress, which has a Friday deadline before the federal government shuts down. "The president, and our leadership, and the leadership in the House got together and said, Look, we don't like what the Democrats are doing, we got to fund the government".
Mr Trump has threatened to veto the Bill if it does.
Both sides declared victory Thursday after NY and New Jersey lawmakers struggled to assure Gateway funding in the must-pass omnibus spending bill despite President Donald Trump's threat to veto it if it did.
The Republican-led chamber voted 256-167 despite opposition from the party's conservative House Freedom Caucus.
Congress is poised to pass an omnibus spending package that outright rejects the funding cuts proposed by the Trump administration.
In return, Democrats could have won permanent protections for the Dreamers - immigrants who are in the USA illegally after going there as children.
Subscribe to Times of San Diego's free daily email newsletter! .
It provides $1.6 billion - far less than Trump wanted - for border security and funds to construct or fix almost 100 miles (160 kilometers) of border fencing and barriers, boosts infrastructure spending, and increases funds for school safety and student grants.
"I'm pleased to report that the appropriations package is now being finalized", Senate Majority Leader Mitch McConnell, R-Kentucky, told reporters early Wednesday afternoon.
Trump congratulates Putin on reelection, intl issues discussed in phone call
Trump is not the first Commander-in-Chief to call Putin to congratulate him on winning re-election. The White House press office declined to comment on the briefing materials given to Trump.
In a tweet on Friday morning Trump said he was displeased about immigration issues in the bill, even though the White House had given assurances on Thursday that he would sign it.
"I'm extremely disappointed", the provision's co-author, Senate Republican Susan Collins, told reporters.
Another thing that did not make it into the budget: full funding for President Donald Trump's border wall. The spending levels without any offsets are grotesque, throwing all of our children under the bus. Trump ended some of those payments as part of his effort to scuttle President Barack Obama's health care law, but Republicans have joined Democrats in trying to revive them.
Another fight would remove an earmark protecting money for a rail tunnel under the Hudson River that's a top priority of Mr. Trump's most powerful Democratic rival, Senate Minority Leader Chuck Schumer, D-N.Y. The spending bill had been negotiated by Trump's own aides - with sign-off from the boss on every major decision.
The tweet caps yet another week of high drama at a White House that seems to lurch from crisis to crisis.
The threat by Trump came just hours after a host on conservative news channel Fox News pilloried the deal as a Washington "Swamp Budget". Attempts at a legislative fix collapsed in a previous round of negotiations to avert a government shutdown.
It funds the government through September and beefs up military spending - something both Democrats and Republicans support.
Trump, however, warned that he won't back anything similar going forward.