The lawsuit, filed on Thursday, appeared to be among the first attempts to stop doctors from mailing the medication to states that ban abortions.