It would be legal for states to impose criminal liability on their own officials for refusing to cooperate with federal immigration authorities, as the Texas bill would do,” said Michael Dimino, a constitutional law professor at Widener University.