Assisted dying has come a step closer to becoming law.