Massachusetts health officials have no legal authority to ban the sale of regulated marijuana vapes, a group of medical marijuana patients argued in a legal filing this week.

Governor Charlie Baker announced an emergency statewide ban on the sale of all vaping products Sept. 24, contending the broad policy was needed to protect public health amid an outbreak of vaping-related lung illnesses that federal authorities now say have sickened nearly 2,000 Americans and killed at least 37, including two in Massachusetts.

But the medical marijuana patients — who are challenging the ban in court along with a group of nicotine companies and vape shops — say they’re suffering after losing access to the quick symptom relief provided by vapes sold at licensed marijuana stores and dispensaries. They point to advisories from the US Centers for Disease Control saying additives in illicit marijuana vapes are the most likely cause of the lung illnesses and argue that regulated vapes are safer because they are lab-tested and list their ingredients.