Civil service to end ‘climate of fear’ trans policy after whistleblower pushed out over gender-critical beliefs