A Politico article on the FDA and its questionable legal independence (from the executive) mentions that:
in 2011, the diminished autonomy of the FDA was made visibly apparent by a clash within the executive branch. Amid the upcoming presidential election and polarized abortion debate that would reemerge during the year’s campaigns, the scientific recommendation of FDA Commissioner Margaret Hamburg to make Plan B One-Step an over-the-counter abortion medication was overridden by HHS Secretary Kathleen Sebelius. This ruling, while reversed by a federal judge two years later, extends the concerning history of partisan influence upon the FDA and decisions unfounded by science, but rather politics.
On what basis did the judge reverse that ruling of the HHS Secretary?