Montana’s governor on Friday enacted a Republican-backed ban on gender-affirming medical care for transgender children, days after a transgender lawmaker protesting the bill was barred from the floor of the state legislature, sparking a national furor.