Isle of Man poised to legalise assisted dying after vote