He was speaking out against legislation to ban transgender children from joining youth sports teams not aligned with their gender assigned at birth.