Supreme Court told legislation to allow assisted suicide for terminally ill need not pose risk to others