The court ruled his actions "distort" the concept of a heterosexual relationship.