The Plano city council on Monday approved an amendment to the city’s equal rights ordinance to include protections for LGBT residents.

The amendment to the city’s 1989 anti-discrimination policy extends protections from housing, employment and public accommodation discrimination to include sexual orientation, gender identity and other categories, reports the Dallas Morning News.

“Providing equal rights for everyone is the right thing to do,” Mayor Harry LaRosiliere said after the 5-to-3 vote.

Council members Pat Gallagher, Ben Harris and Jim Duggan cast the dissenting votes.

The vote drew angry responses from some residents who shouted that they would vote council members who supported the amendment out of office at the next election.

Most of the 37 people who addressed the council were opposed to the amendment, saying it was unnecessary, and id not represent the views of the majority of Plano residents.