Mr. Comey, who oversaw the inquiry into ties between President Trump?s associates and Russia, said he knew of no illegal surveillance directed at the campaign.