Most Republicans oppose environmental regulation. But Texas’s attorney general has attacked the energy transition in a way that upends a generation of conservative consensus.