Thanks to corrupt GOP sisters in robes and an overwhelming turnout of public employees in off-year elections, Pennsylvania's supreme court came to be dominated by Democrats who decided they, not the legislature, would have the power to draw congressional districts. Nobody complained then about an obvious power grab.
Illegal and unconstitutional what was done in PA, period.