The Federal Parliament has lifted a 25-year-old ban that prevented the territories from making voluntary assisted dying laws.