Historically, that's turned out pretty well for them, as countries in that position can attract favorable terms from both major powers, who want to court them as allies.
Who knows if the government of Australia is thinking in these terms, but I'd be incredibly interested in what concessions and non-public promises Australia got behind the scenes for this.
And in terms of future international relationships, it does demonstrate to China that Australia isn't willing to make alliances solely on the basis of economic pressure. It will be curious if (in the medium to long term) China holds a grudge, or tries to reattract Australia with incentives.