Sen. Patrick J. Leahy has been an appropriator for decades.

But the Vermont Democrat said Monday that for the first time in as long as he could remember, he did not hear from the White House while working to craft an omnibus bill to fund the government for the rest of the fiscal year.

Keeping President Donald Trump and his administration away from the nitty-gritty of the deal was, to Democrats, significant in getting to an agreement that includes all 11 of the remaining spending bills. And it was the House and Senate Appropriations Committee members and their staffs who did most of the work.

“The major win is that key members of both parties in both bodies know if we really want this to work, do it the old-fashioned way,” Leahy said. “A lot of work, a lot less rhetoric, but you get somewhere.”

“There are a lot of Republicans who wanted increased funding for [the National Institutes of Health]. There were a lot of Republicans who wanted increased funding for transportation and education,” Senate Minority Leader Charles E. Schumer said. “I spoke to seven or eight Republicans who told me they were against the [U.S.-Mexico border wall.] So, we [knew] that we’d have leverage there.”