The ruling comes about six months after a judge said the way the police sergeant promotional test was run resulted in lower scores for Black and Latino officers