The order is part of Elon Musk’s drive to slash what he describes as “waste everywhere" in the federal government.