The ruling cited concerns about the appearance of bias, pointing to comments that the judge who presided over the trial of three former police officers reportedly made afterward.