A federal judge says the morning-after pill must be available to women of all ages.

This comes after years of legal battle between the Food and Drug Administration, the Justice Department, and the Department of Health and Human Services.

The FDA initially approved the morning-after pill to young teens, but Health and Human Services Secretary Kathleen Sebelius overruled the agency, limiting access without a prescription to women 17 and older.

Should the FDA not appeal the decision, the pill will be available to women of all ages next month.