It's not so much that they allowed Texas as much as it allowed the 5th Circuit Court of Appeals to critique what it saw as errors in the district court's ruling.
This is an appellate process working its way through.
https://www.supremecourt.gov/orders/courtorders/070626zr_g3bi.pdf