The decision came after another ruling would have allowed county prosecutors to enforce it.