The Hatch Act restricts the political activities of government employees to ensure a nonpartisan federal workforce.