The Harry Potter author shared a post on X claiming the new legislation, which outlaws abusive attempts to change people's sexuality or gender identity, could also threaten gay rights.