@anna it really depends and is more complicated than I fully understand. as tim says, US government employees are generally unionized. many of my friends are in non-unionized term-limited positions that have basically no protections, though - this is a way many of the "tech to public sector" pipelines have happened recently, as a hack to more closely match private sector salaries more onerous hiring processes. also, many folks working for government are contractors.