California court denies bid to halt same-sex marriages in state