Court reinstates most Texas’ abortion restrictions