Plans to purge federal workers and replace them with ideologically aligned individuals could destabilize the civil service and compromise impartial governance.