California gay marriage ban upheld