When President Trump announced in May that the United States would withdraw from the 2015 Iran nuclear deal, Iran’s leaders warned Washington of an “unpleasant” reaction while presenting a new list of demands to its European partners that included a guarantee they would buy Iranian oil and protect the country from US sanctions.