Yes, this is what the judges were tasked to clarify. And they clarified. The situation is better now, i.e., those laws are not ambiguous anymore (well, except for that 'what is biological sex' discussion...). It is quite an arbitrary clarification, but they clarified, and arguably, they could only do it wrong. They write themselves that they are not trying to define what sex or gender is. But they disambiguated existing laws, which by itself, is a good thing.
Obviously, this is not a good judgement for trans people, but the underlying problem is not with this judgement, but that the laws are not good. No definition of what sex or gender is will make those laws better. Judges cannot change that; legislation needs to change that. The judgement clarifies that the laws were made to protect cis women from cis men. The laws unfortunely do not protect trans women. And that's bad. Completely agreed.
The discussion here has drifted in the direction of how to or not to define biological sex -- and that's also not helpful for trans rights. But the topic is still interesting and no-one claimed to be solving problems, I think.