President Trump charged that James B. Comey had “exonerated” his opponent Hillary Clinton before completing an investigation.