Netanyahu may have been hoping that Trump would strike Iran for him, but that clearly is not going to happen– Trump’s reading of his base is that they are tired of seeing American blood and treasure squandered in the Middle East. Indeed, Trump may eventually actually hold talks with Iran, an eventuality that clearly scares Netanyahu half to death.
Iran signed the Non Proliferation Treaty.
Their nuclear weapons program is 100% illegal.
Every country retains the sovereign right to engage in it's own domestic affairs, and that includes breaking a treaty. It is not illegal to do so.
Americas own breaches of NPT
That is incorrect. Countries are only allowed to withdraw from the NPT for a very good reason.
"I'm a rogue nation and I want weapons of mass destruction" does not count as a good reason.