Texas does ‘about-face’ on controversial immigration law during appeals court hearing