The visit between Hegseth and the defense minister of Australia comes during a moment of uncertainty for U.S. allies.