Doesn't the law only allow this to be used as an affirmative defense if charged with a crime, presumably drug related?

I bet people on here with knowledge of the legislation get so mad when we have off-the-cuff discussions on stuff that's easily found on the google. It's amusing. Obviously I don't know much on the language in A20 or 1284.