That is always a risk of working for the government. Your job exists more or less at the whims of the currently governing administration.
Perhaps in theory, but not in practice as a historical norm. And, certainly not for "standard" non-appointed, bureaucratic roles.
It's important that we don't normalize what we're seeing here, in terms of quality or degree.
Or we didn't. Now we do. Kinda sucks.
The current administration is making all positions political, and in doing so, performing an end run around the legislative branch.
Submitted some historical breadcrumbs here: https://news.ycombinator.com/item?id=43686221