A decision to classify the graphic book Gender Queer as unrestricted was based on the incorrect belief that those opposing the book were "broadly anti-LGBTQIA+," a court has found.