President Trump unseated Representative Thomas Massie, a top Republican critic in Congress, and also got his way in other primary contests.