Ruling is the first of its kind since the Supreme Court struck down Texas abortion regulations.