The shake-up comes as part of an unprecedented push by Trump and his billionaire adviser Elon Musk to shrink the federal government.