Conservatives have promised to dig in for a long fight in the debate over whether transgender people deserve legal protection against discrimination and the right to use the public bathrooms of their choice.