The North Carolina Supreme Court on Friday ruled that there is no legal mechanism to judge claims of “partisan gerrymandering,” giving the Republican-controlled state legislatures the ultimate authority to draw congressional maps without court intervention.