A proposal that would bar transgender women from school locker rooms and sports teams has already generated robust legal debate in the House.