More openly lesbian, gay, bisexual and transgender people were elected Tuesday night than in any previous election, signaling a shift in cultural attitudes even as the Trump administration has chipped away at L.G.B.T. rights.

The results are still rolling in, but at least 153 have won so far, said Elliot Imse, a spokesman for the Victory Fund, a nonpartisan political action committee devoted to electing L.G.B.T. candidates. The group endorsed 225 candidates in this election cycle, nearly all of whom were Democrats.

L.G.B.T. candidates ran for office in record numbers this year. “Success breeds success,” said Annise Parker, the president and chief executive of the Victory Fund and former mayor of Houston.

“We’re not going out and pleading with people to run,” she added. “These are people who say, ‘I want to go out and do this and bring my whole self to the campaign.’”