The judiciary is a weak institution, staffed by political officials who are often reluctant to stand against popular authoritarian policies or movements. Indeed, the justices themselves often belong to those movements.
https://www.vox.com/scotus/24086594/donald-trump-supreme-court-trial-immunity-never-going-to-save-us