Judge Sonia Cortés ruled in favor of the prosecution’s case