From sanctuary states to the courts, lawyers and political allies resist Republican bans on transgender care for minors.