Even before Musk fell out with Donald Trump, the agency’s projected savings had plummeted. But he nevertheless managed to inflict lasting damage to the federal government.