The president said that he had received assurances from Moscow that Russia would not do anything to allow Syria or Iran to acquire nuclear weapons , and that Mr. Putin '' understands the dangers '' of an Iran with nuclear weapons .