Supreme Court issues gerrymandering ruling