Justices dismiss state law restricting medical abortions