After the cancellation of a new opera written by Lee Hall, the Tony Award-winning book writer and lyricist of “Billy Elliot: The Musical,” its author says that discrimination against gays led to the collapse of the project, while a school whose students would have taken part in the opera said it had withdrawn because of concerns about strong language.