When F.B.I. director James Comey reopened the investigation into Hillary Clinton’s e-mails in the final days of the campaign, many saw it as a political move that cost Clinton the presidency. But some insiders suspect Comey had a more personal concern: his own legacy.