The panel overruled the trial judge, who had allowed Fani T. Willis to keep the case despite a romantic relationship that defendants said created a conflict of interest.