The Supreme Court on Tuesday ruled that North Carolina’s top court did not overstep its bounds in striking down a congressional districting plan as excessively partisan under state law.

The justices by a 6-3 vote rejected the broadest view of a case that could have transformed elections for Congress and president.