The Democratic New York attorney general made her investigation of the Republican president a centerpiece of her campaign.