Let's-see-how-you-like-it fantasies in response to the Supreme Court immunity ruling are underestimating just how bad the situation is.
Any prosecutions would take place in courts, where SCOTUS would block it. This term especially, the SCOTUS majority has shown that its standards are Calvinball.
Under today’s immunity decision, Biden could order AG Garland to immediately prosecute Thomas and Alito for corruption and insurrection. (Official act). If Garland refuses, Biden can fire him and replace him with someone who will. (Official act) I would suggest Elie Mystal.
Unlawful imprisoning Supreme Court justice: official act
Defying court order to release them: official act
Arresting the Congress if they try to impeach: official act