What is being cut is otherwise a symptom of the budget deficit (7%) and the fact that politically they cut areas where there are not republican votes, as politicians obviously try to maintain their voter base as a consideration in their decisions.
Note historically a criticism of the original lunar mission was that USA diverted funds from hospitals and other public programs to fund the mission. So some were bitter despite the triumph.
It goes back to the fundamental conundrum. You have a back of corn. Do you plant the corn, or eat the corn? If AI delivers for America (planting the corn) and USA lands on Mars, these 4k NASA employees will not dwell in the public imagination despite our respect for their commitment, skill and service.