The U.S. Supreme Court today agreed, 5-3, with a lower federal court that North Carolina used impermissible racial considerations to redraw two congressional district lines after the 2010 Census to aid Republicans.

Justice Clarence Thomas joined four liberal justices in the ruling. Chief Justice John Roberts and Justices Samuel Alito and Anthony Kennedy disagreed as to one of the two districts. It was merely drawn to help Republicans, not to disenfranchise black voters., they said. New Justice Neil Gorsuch didn’t participate.