US President Barack Obama

US President Barack Obama has signed into law legislation giving lawmakers a chance to review any nuclear deal the White House seeks to hammer out with Iran, CNBC reported.

The US and five other world powers have crafted a delicate framework with Iran to keep it from developing nuclear weapons. The nuclear deal with Iran is a key part of the president's foreign policy legacy, a fact he underscored during an interview this week with The Atlantic.

The law gives Congress at least a month to review the details of an agreement. During the review, the president would be prevented from lifting congressionally imposed sanctions on Iran.

"Look, 20 years from now, I'm still going to be around, God willing. If Iran has a nuclear weapon, it's my name on this," the president said in The Atlantic interview with took place on Tuesday and was published on Thursday. "I think it's fair to say that in addition to our profound national-security interests, I have a personal interest in locking this down."