ISTANBUL — The opposition candidate for mayor of Istanbul celebrated a landmark win Sunday in a closely watched repeat election that ended weeks of political tension and broke President Recep Tayyip Erdogan’s party’s 25-year hold on Turkey’s biggest city.