The conservative state lawmaker went to Austin to help public schools. Then he became the target of his own party's leaders.