Mexican authorities have agreed to pay reparations for the violent police repression that left up to 12 dead in Oaxaca.