This move came following criticism from a judge about her conduct while in a previous role as a corporate lawyer for ExxonMobil.