The Parliament of New South Wales, Australia’s most populous state, has passed a law allowing people to choose assisted dying under certain circumstances. It was the last of the country’s six states to enact such legislation.