The CPB's budget was kept the same, at $465 million.
Trump only reluctantly backed the bill he would have to sign, according to Republican lawmakers and aides, who acknowledged the deal involved necessary trade-offs for the Democratic votes that were needed for passage despite their majority lock on Congress.
On Wednesday, the White House signaled that Trump would sign the legislation if Congress sends it to him.
"While we're very disappointed in the $1.3 trillion, nobody more disappointed than me because the number is so large, it'll start coming down". He also asked for the ability to have a line-item veto.
Only a portion of the $1.6 billion in the new spending package can be used on new barriers.
There's what Donald Trump does, and what Donald Trump says.
Mr Trump also told reporters: "I looked very seriously at the veto, but because of the incredible gains we've been able to make for the military, that over-rode any of our thinking". The spending bill takes the country almost up until the midterm elections, and there aren't any other must-pass bills before then.
The spending agreement omits language steering money to the Gateway project, although the project could access about half the funds supporters are seeking - as much as US$541 million - through other accounts, one congressional aide said. "We were, in a sense, forced [to sign] if we wanted to build our military".
U.S. congressional leaders on Wednesday reached a compromise on a $1.3 trillion budget bill which sets aside $1.6 billion for President Donald Trump's wall along the border with Mexico and contained legislative steps on gun reforms.
Trump has been fuming because the package does not include protections for so-called Dreamer immigrants and doesn't provide enough money for his promised border wall. Democrats offered to provide the money but only if Trump agreed to provide DACA recipients with a path to USA citizenship, as he had in an earlier debate.
He added that passing the bill was a "matter of national security" and his "highest duty is to keep America safe".
The bill would provide the federal government with funding for the remainder of the fiscal year, which ends September 30. The advisers sought anonymity to discuss private conversations.
Trump issued a statement to that effect this morning. Despite multiple meetings and press conferences, legislators have apparently failed to save it.
A day earlier, White House officials said Trump would sign the legislation. Funding for the federal government was set to run out at 12:01 a.m Saturday.
The Senate passed the spending bill known as the Omnibus on a bipartisan basis in the wee hours of the morning.
Republican leaders insisted that while lawmakers may not have had a chance to read this version of the bill, it was similar to legislation they'd voted on a year ago.
In both cases, opposition was drawn from the ideological ends of the parties, with the most conservative Republicans and most liberal Democrats voting against the bill.
Congress had already left town for a two-week recess.
Trump had ordered the end of the Obama-era DACA program and gave Congress a March 5 deadline to fix it or lose it.
DACA recipients have been treated "extremely badly" by Democrats, who did not want the program in the bill, President Trump insisted during his remarks Friday at the White House ahead of putting his signature on the omnibus.
After decrying the legislation's shortcomings, Trump thanked Congress for working on the bill.
"Is it ideal? No", acknowledged Mick Mulvaney, the director of the Office of Management and Budget.
With some Republicans unlikely to support the $1.3 trillion spending bill, the GOP needed Democrats on board to prevent another government shutdown. But that came only after late obstacles skirted close to another shutdown as conservatives objected to big outlays on Democratic priorities.
Senate Democratic leader Chuck Schumer of NY and his House counterpart, Representative Nancy Pelosi of California, echoed the sentiment.
The bill would allocate almost $1.3 trillion of federal funding over the next two years and includes money for other legislative projects favored by both parties.