Sotomayor warned the Supreme Court risks legitimacy after the Trump immunity ruling, citing rapid precedent shifts that may erode public trust in the court.