I have no problem with this. Cruz was just doing his job enforcing the will of the Texas Legislature as Solicitor General.
Read the case, he lost.