Across many decades and hundreds of campaigns at every level of government, L.G.B.T. rights have been a point of bitter debate, often benefiting Republican politicians in conservative areas where voters pushed back at social change. In recent years, though, Democrats have increasingly sought to turn their advocacy for L.G.B.T. people into an advantage.