Bill banning care for transgender minors advances in legislature