A US judge has ruled in favor of WhatsApp in a long-running case against commercial spyware-maker NSO Group