Consider what would have happened if Elon wasn't there. Likely the same. The people wanting those things cut are still present.
I wish he hadn't gone along with them, but there likely had to be concessions before attempting to make progress. When it became clear cost savings and efficiency wasn't the actual goal in the White House, Elon left.