The F.B.I. chief’s remarks created a treacherous political moment for the president and placed a criminal investigation at the doorstep of the White House.