You would think that Judges have an Honor Code that would cause them to excuse themselves when situations like that occur. Oh well, I guess honor is something Ancient.
Each justice or judge of the United States shall take the following oath or affirmation before performing the duties of his office:28 U.S. Code § 453 - Oaths of justices and judges“I, ___ ___, do solemnly swear (or affirm) that I will administer justice without respect to persons, and do equal right to the poor and to the rich, and that I will faithfully and impartially discharge and perform all the duties incumbent upon me as ___ under the Constitution and laws of the United States. So help me God.”
(June 25, 1948, ch. 646, 62 Stat. 907; Pub. L. 101–650, title IV, § 404, Dec. 1, 1990, 104 Stat. 5124.)
(underline emphasis mine)