The ban on same-sex marriage in California has been ruled unconstitutional by a San Francisco court of appeals.