President Trump’s suggestion was denounced in the Middle East, Washington and beyond.