California court upholds gay marriage vote