The FBI director had testified before Congress about “very active efforts” by Russia to undermine the U.S. election, which set the president off.