Harry Potter stars have pledged their support for the transgender community following controversial posts made by author J.K.