New York Times describes how Tehran became emboldened as US-led alliance, including Gulf Arabs and Israel, began to unravel amid fears Trump was not prepared to counter violence