Judge had conflict if the illegal immigrant was staying in a hotel owned by the judge so must recuse from hearing.
But for this no charges can be laid and judges are immune from acts done in court as much as many govt servants for acts done in good faith.
Remember Signal leak by Top Trump officials including JDV -VP . Were they prosecuted for addition or having Atlantis Editor in Signal Group and sharing top secret military info on the attack.