When a republican president takes over the political appointees change but the civil service underlings stay on and leak info, sabotage efforts, etc. to reduce the effectiveness of the appointee and there is nothing that can be done. It is a major weakness in the government.
Constructive Destruction might be the answer, even for government functions that are constitutional. Eliminate a department due to budget constraints. Terminate all the employees. (Proper notice and help in finding a real job, of course.)
Then start a totally new agency with new staff.