Drugmaker Mylan N.V. announced Friday that it had reached a $465 million settlement with the U.S. Justice Department and other government agencies to resolve questions over rebates required by the Medicaid program.

The deal settlesallegations by the Centers for Medicare and Medicaid Services that Mylanhad misclassified the EpiPenas a generic drug and had not paid the appropriate rebates that are required by law.

Andrew Slavitt, the acting head of CMS, detailed the allegations in a letterto Sen. Ron Wyden, D-Ore., this week.

Slavitt told Wyden that Mylan had misclassified EpiPen as a "non-innovator" or generic drug, when it should have been classified as a brand-name product. Slavitt said the agency had informed Mylan multiple times of the misclassification.

Drugs companies pay rebates to the Medicaid program of 23.1 percent for brand-name drugs and 13 percent for generics. Mylan paid only the 13 percent for $1 billion worth of EpiPens that Medicaid bought between 2011 and 2015. That cost state and federal taxpayers $163 million, he said.

Mylan was facing potentially large penalties. Companies are required to report a drug or device's correct classification and can be fined up to $100,000 per violation under the terms of the Medicaid Drug Rebate Program.

Mylan has come under increasing scrutiny by lawmakers on Capitol Hill, federal agencies and state attorneys general after the company raised the price for the EpiPen more than 500 percent since 2008. The device is an auto-injector used to reverse serious allergic reactions.

Copyright 2016 NPR. To see more, visit http://www.npr.org/.