Meta has secured a legal victory over NSO Group, the developer of Pegasus spyware, in a significant court ruling that upholds the company's right to sue over surveillance abuses.