General says the ongoing wars in Ukraine and the Middle East will not affect the U.S. presence in the Indo-Pacific region.