The Boston City Council voted nine to one with one abstention Oct. 23 to pass a measure adding gender identity and expression to the city’s anti-discrimination law. In August, Mayor Thomas M. Menino indicated that he would support the measure if passed.