Republicans in North Carolina rushed a bill through the legislature this week to boost their power before they lose their supermajority, approving a measure to give their party more control over elections, eliminate the jobs of judges who have ruled against them and limit the authority of the incoming Democratic governor and attorney general.