Tasmanian senator’s vote brings to an end law which allowed sick refugees to be transported to Australia for treatment on the advice of doctors