NSW euthanasia bill heading to parliament