Ruling means convicted officer can stay on force