A federal appeals court has ruled that California’s ban on same-sex marriage is unconstitutional, setting up a showdown in the Supreme Court. The state instituted the ban after voters narrowly passed Proposition 8 in 2008.