Court on Thursday agreed to take up an elections case brought by North Carolina Republicans that could diminish the power of state courts to order changes to rules for federal elections and the redrawing of congressional districts approved by state lawmakers.