Federal authorities may prosecute sick people whose doctors prescribe marijuana to ease pain, the Supreme Court ruled Monday, concluding that state laws don’t protect users from a federal ban on the drug.

The decision is a stinging defeat for marijuana advocates who had successfully pushed 10 states to allow the drug’s use to treat various illnesses.