Cali supreme court rules on San Francisco wedding