Mediators have made progress in efforts to bring the United States and Iran back to negotiations and prevent an all-out war in the Middle East, according to two regional officials.