Turkish President Recep Tayyip Erdogan has emerged triumphant and possibly stronger from a failed coup attempt, meaning that Turkey’s pivotal roles as an ally in the U.S.-led war against the Islamic State group and a guarantor of refugee agreements with Europe are likely to remain intact for now. However, looming tension over Fethullah Gulen, a