President Trump was said to have been upset that the strategist, Jon Lerner, had worked on efforts to oppose Mr. Trump during the presidential primaries.