Signing a nuclear pact in the Middle East is a bold move that has drawn criticism in the US and in Israel.