I'd say its more likely they provided the inspiration for those hacks.
The discussion why they are allowed to get away with it is another thing
They really weren't. NSO has repeatedly lost in US courts, and the Commerce Department added it to a list that essentially makes it illegal to do business with.