Openly gay candidates are winning elections more often, even in states that passed bans on same-sex marriage.