The fate of a Texas law that makes it a crime to enter the country without authorization could hinge on who has the right to sue.