Saturday’s election is the latest test of President Trump’s influence in G.O.P. contests.