Enforcement of the Hatch Act, which restricts the political activity of government workers, has historically been weak against high-ranking officials.