Unless they were both male, in which case it would have been fine.
There is no company I've ever worked for, where sex on company premises would not have been an instant firing offense.
Even if they had been the same gender?
It is the equivalent of two men masturbating in public, and then a judge says they cannot be fired for it?
The two lesbos AND the judge should be removed from civilization.