If the lawmakers had only said, "...restricts transgender people to use the restroom", then that would imply that transgender people could not use the men's or the women's restroom. However, by adding the word "ability", they are saying that transgender people have the "option" to use whichever restroom they identify their gender with.