The Obama administration has lodged an appeal against a court ruling directing it to make emergency contraception available over the counter and without age restrictions.

The appeal recommits the administration to a position adopted by Barack Obama during his re-election campaign that younger teens should not have unrestricted access to emergency contraceptives, against the overwhelming view of physicians.

On Tuesday the FDA made one product, Plan B One-Step available over the counter to women aged 15 and over, granting an application made by the manufacturer. But the groups who sued the FDA said that decision did not comply with the original court order.

The FDA said in December 2011 that "there is adequate and reasonable, well-supported, and science-based evidence that Plan B One-Step is safe and effective and should be approved for nonprescription use for all females of child-bearing potential". That recommendation was overruled at the time by the health and human services secretary, Kathleen Sebelius. In a ruling last month, US federal district court judge Edward Korman described her decision as politically motivated and ordered all emergency contraception to be made available without restriction.

In lodging its appeal on Wednesday, the justice department has asked the district court to stop its order from taking effect temporarily while the appeal is pending.

Andrea Costello, senior attorney at the Partnership for Civil Justice Fund, which represent plaintiffs in the original case, said: "The Obama administration is speaking out of both sides of its mouth when it comes to basic rights of women and girls, as shown by its political decision issued by the FDA late yesterday," Costello said. "Just last week, President Obama stated, 'When it comes to a woman's health, no politician should get to decide what's best for you.'"

Reproductive rights groups called the FDA's decision to make Plan B available over the counter an important step but still seek unrestricted access to emergency contraception. The FDA's Tuesday decision limits Plan B One-Step access to those with a government-issued ID, a major point of contention for several groups.

"While we fully support this expansion of access to birth control, we continue to believe that the administration should lift all unnecessary restrictions to emergency contraception, consistent with the prevailing science and medicine," Planned Parenthood said in a statement.

The American Medical Association, the American Congress of Obstetricians and Gynecologists and the American Academy of Pediatrics and other scientists and government health agencies have recommended unrestricted access to emergency contraceptives for years.

Women under the age of 17 will still need a prescription to get regular Plan B, which has a two-pill dosage. The morning-after medication Ella is still only available with a prescription; it can be taken within five days of having unprotected sex.

The government approved prescription-only access to morning-after contraception in 1999. In 2006, it approved non-prescription access to the medication for women 18 and older. The age restriction was lowered from 18 to 17 in 2009.