Texas abortion pill ruling heads to the courts