The ruling is the result of a lawsuit filed by Minnesota Attorney General Keith Ellison alongside the attorneys general of Washington and Oregon.