Scotland intends to set up safe spaces for drug users in defiance of UK government