The U.S. has signaled optimism about the prospect of reaching a diplomatic end to the Iran war.