Republicans are projected to hold a Senate seat after a campaign pitting a Trump ally against a democratic socialist challenger.