Churches set to lose appeal on UK gay adoption law