The warring Republican factions are preparing to square off in a series of Senate and House primaries around the country as Republican leaders seek to rein in activists who they believe have fractured and endangered the party with policies that alienate independent-leaning voters.