The defense secretary, speaking to the Pentagon work force, defended his “unconventional approaches” to an audience that included women and people of color.