Are you implying that the US has no national interest in attacking Iran's Nuclear bomb capability?
Cops and criminals operate in a system of national civil and criminal laws, which include physically enforceable penalties. International geopolitical relations don't exist in classroom, or a courtroom. They are a jungle. Thinking the ICC, or the UN, have any actual enforceable power, is a fallacy.
International law, and diplomatic relations, are great things... up to a point. Once one of the parties has shown they routinely can't be trusted to operate within the principles of the agreed framework, international law is only good for lawyers and idealists to mentally masturbate themselves into believing in "higher standards".
It's nice when two civilized nations can negotiate in good faith, and be trusted to uphold their word. Does Iran operate that way? Can they be trusted? No. So they don't get treated like they operate in good faith, or to a "higher standard".
I don't like Trump, and Israel is far from lily white in their actions, but them attacking Iran's nuclear bomb plans was a good thing. Whataboutism invoking Israel doesn't move me at all. Iran got what was coming to them, the only complaint was that it should have happened 46 years ago.