WASHINGTON (CBSMiami) – A federal judge ruled Friday that the so-called “morning after pills” must be sold over the counter at pharmacies without any age restrictions.

The ruling came from U.S. District Judge Edward Korman in New York and came about due to a lawsuit brought by reproductive rights groups. The groups had sued after the Department of Health & Human Services restricted over-the-counter access to morning after pills to people over 17.

READ MORE: 'We Need To Take Action': Gov. DeSantis Vows Special Session To Ban Federal COVID-19 Vaccine Mandates

The judge ruled that HHS Secretary Kathleen Sebelius “failed to offer a coherent justification” for restricting the sale of emergency contraceptives, according to Politico.com.

READ MORE: Parkland Activist Dad Fred Guttenberg Joins Anti-Gun Group

Politico reported Judge Korman called Sebelius’ initial morning after pill ruling, “politically motivated, scientifically unjustified, and contrary to agency precedent.”

MORE NEWS: Miami-Dade Public Schools Could Ease Mask Mandate By End Of Month