Australian judge rules Novak Djokovic freed from detention