We have the Hatch Act, and it should be vigorously enforced with respect to GS employees (not appointees).
The "problem," such as it is, is that people used to go to work for the Government (at all levels) was because they couldn't get a good job anywhere else, they wanted a job with zero stress, great benefits, and an early retirement. They were mediocre, but they worked out Ok. Now people go to work for the Federal government because they want to rule the world, and they are 90% Leftist.
So you have bureaucrats who either ignore or slow-walk Republican directives and initiatives, just biding their time until a Democrat comes to power.
That ain't right.