A wedding is not just a party. It is also a ceremony, and attendance constitutes endorsement. I have (politely and “regretfully”) declined to attend those weddings that I am not comfortable endorsing, and I will continue to do so. A religious leader should do the same.