Supreme Court upholds North Carolina ruling that congressional districts violated state law