The case, about a North Carolina voting map, has the potential to amplify the influence of state lawmakers over federal elections.