I believe the current Supreme Court majority is better understood as legislators enacting their own partisan and ideological preferences, not judges constrained by law, precedent, and norms of judicial conduct.
While I’m hazy what “illegitimate” means here, I don’t view them as real judges.