Appeals court rules in favor of Roncalli in same-sex marriage case