Beijing’s regional aggression brings Japan and Australia nearer in an expanded safety pact.