Appeals court rules California's same-sex marriage ban unconstitutional