In a case stemming from a decision last year by Mayor Gavin Newsom of San Francisco to allow gay men and lesbians to marry , a San Francisco Superior Court judge ruled that the state law was unconstitutional but the ruling is being appealed .