Iran's parliament has voted in favor of a nuclear deal struck with world powers.

In a vote Tuesday carried live by state radio, 161 of 250 lawmakers present at the session voted in favor of the landmark accord. However, Iran's 12-member Guardian Council could refer the bill back to parliament for more discussion.

The bill allows Iran to withdraw from the agreement if world powers do not lift sanctions, or impose new sanctions or restore previous ones.

Iran's Supreme Leader Ayatollah Ali Khamenei, who has final say on key policies, has said it is up to parliament to approve or reject the deal. However, the bill needs to be ratified by a constitutional watchdog, the Guardian Council.