Türkiye, Ortadoğu ve Mezhep Savaşı