The decisive result of the re-run mayoral election is a major setback for President Erdogan.