Anglican church spat over same-sex weddings