Russia and Iran have taken a major step in energy cooperation by signing an agreement to build nuclear power plants in Iran.