This seems like (probably) harm reduction, the approach to dealing with drug addiction. It's not great, but better than at least some alternatives.