The $1.3 trillion omnibus spending bill that President Donald Trump signed into law today preserves several of the scientific initiatives his administration wanted to kill, including a West Coast earthquake warning system and the WFIRST space telescope.

It may not be popular with Senate GOP conservatives such as Rand Paul, but the bill’s a hit with the likes of the American Association for the Advancement of Science.

“The scientific community is over the moon with the bipartisan omnibus bill in Congress that significantly increases funding for research and development,” AAAS CEO Rush Holt, a physicist who served in the House from 1999 to 2015, said in a statement.

AAAS’ analysis shows that total R&D spending would reach its highest point ever in inflation-adjusted dollars, amounting to $176.8 billion. Among the highlights:

The House approved the budget Thursday, and the Senate followed suit hours later. Trump had hinted that he might veto the bill, but he ended up signing it to avert a government shutdown that would have been triggered at midnight tonight.

The omnibus bill authorizes spending through the end of the current fiscal year on Sept. 30, but a fresh set of budget bills will have to be drawn up for the 2019 fiscal year. Which means yet another gauntlet looms for endangered science programs. But isn’t that always the way it is?

This is an updated version of a report that was originally published at 7:06 p.m. PT March 22.