They were married in 1985 and lived together in San Francisco until he died of AIDS two years later. And guess what? No one told them they couldn't get married because they were gay or lesbian.
The law does not say that homosexuals can't get married. It only says they can't marry someone of the same gender. And guess what -- heterosexuals can't marry someone of the same gender either! No discrimination there!