He is hardly pretending. He is stating the case that the courts should NOT be deciding issues like that.
Remember, Cruz is a constitutionalist, since its not defined within the constitution, it technically IS a states rights issue.
That does not make him pro-choice or not pro-life, it means he is consistent in what he is saying.
Trump of course, is NOT a constitutionalist, and is a populist. He blows whichever way the wind blows.
In the case of transgender folks using the same restroom as people of the opposite sex, he blows the direction of the liberal mind, because he is a liberal.
Trump states he would punish women and doctors who get abortions done - the logical answer and he was attacked for it by Cruz and his ilk.
The idea that women should not be punished for abortion was some focus tested idea where it was found women who were pro choice would accept a pro life candidate if the pro lifer pretended he was against abortion while winking to pro choicers they would od nothing about it.