My problem with the pastor is that he listened to a minority of his church members on this issue, and put his position on higher priority than his morals.
The right thing to do would've been to ignore the threats and go ahead with it. The other church members who supported him would have done what they could to prevent him being ousted.