As many as 14 million US government employees had their personal information exposed to hackers, officials said.