The unanimous 9th Circuit ruling on Tuesday was issued by a three-judge panel, two of whom are Republican appointees with a history of pro-law enforcement opinions.

The U.S. Department of Justice cannot spend money to prosecute federal marijuana cases if the defendants comply with state guidelines that permit the drug’s sale for medical purposes, a federal appeals court ruled on Tuesday.