Jersey is set to be the first place in the British Isles to legalise assisted dying.