The Republican president signed an executive order to expand Musk’s influence and continue downsizing the federal workforce.