The judge's ruling is advisory as only prosecutors can bring charges against the police officers involved.