You’re talking about the Rat Park study. That one is also controversial and hasn’t successfully replicated. Personally I think the general idea of a connection between emotional trauma and addiction is pretty obvious, but also a but more complex than the Rat Park study implies or assumes.
To be clear, lots of studies have shown that animals in richer environments do less drugs; though the effect doesn't seem to be as strong as Alexander claimed.