Excerpt from that article:
"Experts argue that drug policy focused on jail time is still more harmful to society than decriminalization. While the slipping results here suggest the fragility of decriminalization’s benefits, they point to how funding and encouragement into rehabilitation programs have ebbed. The number of users being funneled into drug treatment in Portugal, for instance, has sharply fallen, going from a peak of 1,150 in 2015 to 352 in 2021, the most recent year available."
It did work well. It doesn't now. What changed in between then and now is funding and commitment to getting addicts into treatment-- the founding principle of the program to begin with.