Indirect negotiations have been unsuccessful for years since Mr. Trump initially withdrew the U.S. from Tehran's nuclear deal with world powers in 2018.