Such a move likely would spark a court battle, as it is Congress and not the president that mainly decides how federal funds get spent. Several leading Republicans have cautioned Trump against taking the unilateral action.
Under the bill, the government could hire 75 new immigrant judge teams to help reduce a huge backlog in cases and hundreds of additional border patrol agents.
Hoping to reduce violence and economic distress in Central America that fuels immigrant asylum cases in the United States, the bill also provides $527 million to continue humanitarian assistance to those countries.
The House Appropriations Committee said the bill would set a path for reducing immigrant detention beds to about 40,520 by the end of the fiscal year, down from a current count of approximately 49,060.
Democrats sought reductions, arguing that would force federal agents to focus on apprehending violent criminals and repeat offenders and discourage arrests of undocumented immigrants for minor traffic violations, for example.
The Senate Appropriations Committee, which is run by Republicans, said there were provisions in the bill that could result in an increase in detention beds from last year.
Lowey said the bill would improve medical care and housing of immigrant families in detention and expand a program providing alternatives to detention.
The wide-ranging bill also contains some important domestic initiatives, including a $1.2 billion increase in infrastructure investments for roads, bridges and other ground transport, as well as more for port improvements.
With the 2020 decennial census nearing, the bill provides a $1 billion increase for the nationwide count. Also, federal workers, battered by the record 35-day partial government shutdown that began on December 22 as Trump held out for wall funding, would get a 1.9 percent pay increase if the bill becomes law.