World tennis number one Novak Djokovic won a shock victory in his bid to remain in Australia Monday, with a judge ordering his immediate release from immigration detention.
Judge Anthony Kelly abruptly ended days of legal wrangling, after the state dropped its decision to revoke the star's visa.
But a government lawyer warned Australia may yet use ministerial powers to order Djokovic's removal from the country, which would result in him being banned for three years.
With the Australian government facing a humiliating and high profile defeat, lawyer Christopher Tran informed the judge that immigration minister Alex Hawke may step in with executive powers.
"I'm instructed (the minister) will consider whether to exercise a personal power of cancellation," he said.