President Trump has sought to remake the entire federal workforce, prioritizing loyalty over merit, experience and expertise.