Eight House Republicans voted Friday with their Democratic counterparts for the Equality Act, which would broaden the definition of protected classes to include sexual orientation and gender identity.

The bill, a Democratic priority, passed 236-173 amid passionate speeches from both Republicans and Democrats. Debate over the bill was partisan, and at times, tense.

[LGBTQ Equality Act passes House, pushing back on Trump’s religious freedom policies]

There were 23 members of the house who didn’t vote, including three Democrats seeking the 2020 presidential nomination — Seth Moulton of Massachusetts, Tim Ryan of Ohio and Eric Swalwell of California.

Out of 240 co-sponsors of the legislation, three were Republicans: Reps. Brian Fitzpatrick of Pennsylvania, John Katko of New York and

Res. Cmmsr. Jenniffer González-Colón of Puerto Rico. Fitzpatrick and Katko voted for the bill Friday. (Representatives of territories like González-Colón only get to vote in committee, not on final floor passage of legislation.)