Trump's troubles at home should not overshadow his Middle East legacy