As the Cold War ended in the late 1980s and early ’90s, a new fear arose amid the rejoicing and relief: that atomic security might fail in the disintegrating Soviet Union, allowing its huge stockpile of nuclear warheads to fall into unfriendly hands.

The jitters intensified in late 1991, as Moscow announced plans to store thousands of weapons from missiles and bombers in what experts viewed as decrepit bunkers, policed by impoverished guards of dubious reliability.

Many officials and scientists worried. Few knew what to do.

That is when Thomas L. Neff, a physicist at the Massachusetts Institute of Technology, hit on his improbable idea: Why not let Moscow sell the uranium from its retired weapons and dilute it into fuel for electric utilities in the United States, giving Russians desperately needed cash and Americans a cheap source of power?

Last month, Dr. Neff’s idea came to a happy conclusion as the last shipment of uranium from Russia arrived in the United States. In all, over two decades, the program known as Megatons to Megawatts turned 20,000 Russian warheads into electricity that has illuminated one in 10 American light bulbs.