You don't have the right not to be logged
When a company makes an obligation to the user via policy to them, the court forcing the company to violate the obligation they've made to the user is violating an agreement the user entered into.
> When a company makes an obligation to the user via policy to them, the court forcing the company to violate the obligation they've made
To my knowledge, the court is forcing the company to change its policy. The obligation isn’t broken, its terms were just changed on a going-forward basis. (Would be different if the court required preserving records predating the order.)