Wrongful conviction case against police, prosecutors wins appeal