Scotland moves a step closer to legalising assisted dying