Not just Obama. It was also the UK, France, China, Russia, Germany, and the EU that had a nuclear deal with Iran.
Trump ripped it up over the objections of all of them.