California high court upholds gay marriage ban