Trump is expected to swiftly sign the legislation, which was passed by a 217-214 vote in the Republican-controlled House.
Twenty-one Democrats joined Republicans in voting for the funding package and an equal number of Republicans opposed it rather than meet Democratic demands to reform the Department of Homeland Security (DHS).
Negotiations for new money for DHS broke down following the killing of two US citizens by federal agents in Minneapolis, the Minnesota city which has become the flashpoint for the Republican president’s sweeping immigration crackdown.
On Friday, the Senate passed a package clearing five outstanding funding bills to cover most federal agencies through September, along with a two-week stopgap measure to keep DHS operating while lawmakers negotiate immigration enforcement policy.
Trump has been pressuring Republicans to adopt the spending bill and end the shutdown.
“We will work together in good faith to address the issues that have been raised, but we cannot have another long, pointless, and destructive Shutdown that will hurt our Country so badly,” Trump said in a Truth Social post in a reference to a record 43-day closure last summer.
