Iraq's top court has overturned the life sentence handed out out to a police officer for the killing of protesters during anti-corruption protests in 2019.