Credit to Obama for sticking with the Middle East. But it's gone very wrong