Zogenix Inc., the San Diego drugmaker embroiled in controversy over its new opioid painkiller Zohydro ER, finally has a win under its belt — it has successfully blocked an order from Massachusetts Governor Deval Patrick to ban the drug in that state.

Patrick had banned the drug March 27, announcing the state was in a public health emergency for its prevalence of opioid drug abuse.

The U.S. District Court of Massachusetts granted a preliminary injunction against Patrick’s ban, finding that allowing the state to overturn the Food and Drug Administration ruling was an obstruction of the federal agency’s authority.

“We invite concerned officials to engage with us to discuss fair and appropriate safeguards for pain medications like Zohydro ER rather than seeking to ban or restrict one specific treatment,” Zogenix CEO Roger Hawley said in a statement.