@YawnEMIT It's even funnier than non-german speakers think.
If you're very formal, you can call "having sex" "having traffic" here, and his lawsuit said his sexual self-determination was restricted.
So it is valid to read it as "he thought pedestrian traffic lights determined what kind of sex he is allowed to have".