Scotland would have been the first nation in the UK to back assisted dying had the legislation been passed