Ashley Joubert-Gaddis, director of operations at the Sioux Falls-based nonprofit Center for Equality, holds a toilet seat at work on Friday, March 4, 2016, in Sioux Falls, S.D. The Center for Equality was one of many organizations that worked against a bill that would have required transgender students in South Dakota to use bathrooms and locker rooms matching their sex at birth. (AP Photo/James Nord)
Ashley Joubert-Gaddis, director of operations at the Sioux Falls-based nonprofit Center for Equality, holds a toilet seat at work on Friday, March 4, 2016, in Sioux Falls, S.D. The Center for Equality was one of many organizations that worked against a bill that would have required transgender students in South Dakota to use bathrooms and locker rooms matching their sex at birth. (AP Photo/James Nord) Credit: AP photo

BOSTON  — The state’s two largest teachers unions are backing legislation that would expand a 2011 Massachusetts law that bans discrimination against transgender people in the workplace and in housing.

Presidents of the Massachusetts Teachers Association and the American Federation of Teachers said Monday they support the legislation.

Lawmakers are considering bills that would expand the 2011 law by also banning discrimination in restaurants, shopping malls and other public accommodations.

Advocates say they want teachers and students to be protected beyond the classroom.

Republican Gov. Charlie Baker has expressed concern about expanding the 2011 law. He says he supports nondiscrimination for anyone in the state but that the details of any bill are important.

Democratic House Speaker Robert DeLeo says he’s not sure he has the votes to override a Baker veto.