Texas wins bid to reinstate abortion law