Comey, who was appointed FBI director by Barack Obama in 2013, had urged Justice Department officials to refute Trump’s claims because it falsely insinuated the Federal Bureau of Investigation broke the law, U.S. officials have said.