California Supreme Court to rule on controversial ban on gay marriage