In all likelihood there's just language like "to the extent permitted by law", which The Guardian isn't telling us about. Even if they didn't write that explicitly, it's implied anyway - Israel knows any US court would void any provision requiring Google/Amazon to commit criminal acts (illegality doctrine). It's also not really possible for Israel to be break laws of foreign states, since it's not bound by them in the first place.