He was a major advocate for the 2015 Iran nuclear deal, which the Trump administration withdrew from, and he criticized the State Department’s move last month to designate Cuba a state sponsor of terrorism.