If it’s the company’s computer, that is their right.
Well, it wasn’t their computer so it isn’t their right.
But they got an ignorant judge to sign off on it so there you go.