The legacy of the Bush administration in the Middle East was an empowered and emboldened Iran. We basically handed them the keys to the region with our befuddled wallowing around in Iraq and Afghanistan.
Under this President, Iran has been forced to retreat and their tentacles to Hizbollah, Syria and Hamas have been damaged. At the same time, our relationship with Israel has been strengthened with joint intelligence and military co-operation at an all time closeness. Obama's deployment of sea-based missile defense systems, to replace the politically volatile land-based system Bush was determined to shove down the Russian's throat, makes the whole region and southern Europe more secure.
Instead of the Middle East being a failure under Obama, it's actually one of his more outstanding successes.