The bills would ban gender-transition treatment for minors and prohibit transgender women and girls from competing on women’s sports teams.