Mr. Austin made no specific mention of Afghanistan but portrayed President Biden’s full-throated support of Ukraine as an example of the administration’s commitment to engagement and leadership at a moment of assault on democracy.