Complicating matters further, America’s wars in Iraq and Afghanistan have limited its regional clout. The US now faces an unpredictable Middle East that is writing its own history as well – or as badly – as it can.