State supreme courts can curb partisan gerrymandering.