The Boston City Council voted unanimously Wednesday to guarantee transgender municipal employees and their dependents access to gender reassignment surgery, hormone therapy, and mental health services.

An ordinance proposed by Councilors Michelle Wu and Ayanna Pressley will prohibit the city from contracting with any health insurer that denies coverage or “discriminates in the amount of premium, policy fees, or rates charged . . . because of gender identity or expression.”

“This is a matter of equity and of fairness, but it’s also the best economic policy,” Wu said in the City Council chamber before the vote. “We want to be a workplace in the city of Boston that’s committed to hiring and keeping the best and brightest and taking away all the barriers to them supporting their families while they are working here.”