NEW DELHI — President Trump on Tuesday called the conviction of the former film mogul Harvey Weinstein on two felony sex crime charges “a great victory” for women that “sends a very strong message” about sexual misconduct, even as he sought to highlight the defendant’s ties to Democrats.

Asked whether justice had been done in the case, Mr. Trump first stressed that he had never liked Mr. Weinstein even though they knew each other through New York circles. He then noted that the Hollywood producer had been an active friend and fund-raiser for Democratic politicians over the years.

“I was just not a fan of his,” Mr. Trump told reporters at a news conference wrapping up a two-day visit to India. “I will say the people that liked him were the Democrats. Michelle Obama loved him, loved him. Hillary Clinton loved him. And he gave tremendous money to the Democrats, and I guess my question is will the Democrats be asking for that money back because he gave a lot of money to the Democrats.”

After another reporter pressed him again on the message the New York jury verdict might send to women who have been subjected to sexual harassment and assault, Mr. Trump said, “I think from the standpoint of women, it was a great thing. It was a great victory and sends a very strong message, a very, very strong message.”