I think the recourse for unconstitutional or corrupt actions by judges is impeachment.
Unconstitutional acts by a Judge are subject to 42USC1983 suits from the victim, as well as impeachment by the state/federal legislature. A judge’s official job duties do not include performing unconstitutional acts, therefore immunity does not attach.