Court sides with Texas, overturns EPA rule