Notably, the word “wall” — which fueled many a chant at Trump campaign events and then his rallies as president — does not appear once in the 1,768 pages of legislation and explanatory materials. “Barriers” and “fencing” are the nouns of choice.

The compromise also would squeeze funding for Immigration and Customs Enforcement, or ICE, in an attempt to pressure the agency to detain fewer immigrants gradually. To the dismay of Democrats, it would still leave an agency many of them consider abusive holding thousands more immigrants than it did last year.

The measure contains money for improved surveillance equipment, more customs agents and humanitarian aid for detained immigrants. The overall bill also provides $330 billion to finance dozens of federal programs for the rest of the year, one-fourth of federal agency budgets.

Trump has talked for weeks about augmenting the agreement by taking executive action to divert money from other programs for wall construction, without congressional sign-off.

Those moves could prompt congressional resistance or lawsuits, but would help assuage supporters dismayed that the president may be yielding.

Fox News’ Chad Pergram, David Spunt, Jennifer Bowman and The Associated Press contributed to this report.