Turkey’s highest electoral authority on Wednesday restored the right of a newly elected mayor from a pro-Kurdish party to hold office, overturning an earlier decision by a lower body that had sparked widespread protests and led to dozens of arrests.