When Iran’s covert nuclear program came to international attention over two decades ago, Tehran insisted that its intentions were peaceful and that it had no plans to develop nuclear weapons.