I think the pastor could have spoken with the parents of the dead son and explained that while a funeral service could be given, he could not, as a Christian minister, acknowledge the “husband” during the service. If that was acceptable to them, the service could have preceded. If that was unacceptable to them, then the pastor did the correct thing.