Hackers who raided the government’s personnel office had access to the secret background investigations that the U.S. government conducted on current and former employees, senior administration officials said Friday—an ominous development in the recent theft of federal data, one of the largest in history.