As Texas' urban centers trended blue, state Republican leaders embarked on an expensive effort to reclaim power, including with new courts.