Democrats and Republicans are both billing the compromise as a win for their parties. Democrats, for example, are touting the $25 million for gun violence research and no new funding for Trump’s southern border wall, rather than honoring his request for $8.6 billion. Budgets for the nation’s two immigration enforcement agencies — Customs and Border Protection, and Immigration and Customs Enforcement — are also largely flat-lined.

But Republicans are celebrating the fact that the deal doesn’t hinder Trump from shifting around federal cash for a border barrier, as he has done in trying to siphon more than $6 billion from military construction projects, a Treasury forfeiture fund and Pentagon counterdrug efforts. While the number of immigrants ICE can keep detained at any one time will stay the same, the compromise doesn’t bar the administration from transferring money to increase that detention number if there‘s a surge in incoming undocumented immigrants.

The wall funding also comes with fewer stipulations than before, giving the Trump administration more flexibility to continue building the structure in new areas if Congress keeps spending static next time by resorting to a stopgap spending bill.

Members of the Congressional Hispanic Caucus had pushed for more immigration-related restrictions, which the White House made clear would sink the president’s support. Advocacy organizations like the American Civil Liberties Union and the National Immigrant Justice Center are now accusing House Democrats of caving following months of negotiations and bitter partisan disputes,

“It is deeply disappointing that members of Congress, including many who position themselves as supporters of immigrant rights and opponents of this administration’s abusive immigration policies, continue to turn a blind eye to ICE and CBP taking money from wherever they choose and redirecting taxpayer dollars toward its anti-immigrant agenda,” said Heidi Altman, policy director for the National Immigrant Justice Center, in a statement.

Conservatives are also decrying the deal as a budget-busting deficit bomb that came together without any transparency.

“Backed into a corner between choosing shutdown versus 'mystery budget,’ many colleagues will choose ‘mystery budget,’” said Rep. Jim Banks (R-Ind.), the chairman of the Republican Study Committee Budget and Spending Task Force. “Like ‘mystery meat,’ you don’t want to know what’s in it. Also like ‘mystery meat’ — you can bet at least one ingredient is a whole lot of pork.”

Heritage Action for America said it would closely watch how members voted on the second minibus, which includes the bulk of funding for domestic programs, while praising the national security package.

"President Trump promised last year never to sign another omnibus bill, and Congress promised this summer to pursue a transparent appropriations process and include no poison pills in a final bill,” the conservative policy organization said in a statement.

“While this week's national security appropriations bill is good legislation, the domestic appropriations bill violates Congress' promise and the spirit of the President's promise. The domestic bill is a fiscally irresponsible package filled with problematic policy riders, and members need to vote no.”

The U.S. Chamber of Commerce, meanwhile, urged members to support the two bills.

Jennifer Scholtes contributed to this report.