Key crossbench senator Derryn Hinch has backed a contentious bill to make it easier for asylum seekers to get medical treatment in Australia.
The bill passed the Senate on Wednesday 36 votes to 34, after Justice Party Senator Derryn Hinch confirmed his support for the bill.
Senator Hinch, who supported the changes late last year, had second thoughts ahead of the draft laws returning to the federal parliament's upper house for final approval.
But a security briefing Wednesday morning appears to have satisfied his key concerns.
"I think it's the right decision, it's a humanitarian decision," Senator Hinch said.
He said it was the toughest decision he's had to make in the chamber.
"It has been a very tortured 24 hours, there has been a lot of pressure from all sides of the chamber."
Fiery debate
Labor successfully moved to bring on debate on the contentious bill in the Senate, after they combined with the crossbench in the lower house to defeat the government on the legislation on Tuesday.
In a fiery start to the debate, Leader of the Opposition in the Senate Penny Wong said the government had demonstrated "a pattern of deceit", saying it had resorted to "smear and fear".
"They are led by a desperate Prime Minister who is leading a bitterly divided government. He is clearly only concerned about one thing, clinging on to his job. This is the only thing that this has always been about," Senator Wong told the chamber.
"Why don't you just call an election?"
Senate Government Leader Mathias Cormann hit back, saying people who have been convicted of low level offences or accused of serious crimes will be allowed to come to Australia on doctors say so.
"As a result of Bill Shorten's bill, rapists, murderers and paedophiles will still get a free pass into this country," Senator Cormann said. "Bill Shorten should be ashamed himself."