A generation of nuclear ambition shaped the Islamic republic. Its end could undo the damage.