The document, a dossier prepared by a former British intelligence officer hired by Mr. Trump’s political opponents, had been circulating among high-ranking politicians and some journalists since the fall.