Not for defence stuff. For war/defence stuff, you must have approval; and systems for acquiring information from phones and computers intended to be secure from that is war/defence stuff.
If this weren't state-approved spying by Israel, then these people would be in jail.
If someone is spying on high level officials using Palantir malware, there is a good chance that the US at least tacitly approves of said spying. Same as if someone is using Lockheed-Martin planes to fight an insurrection, there is a very good chance that the USA approves of that fight.