Vietnam welcomed the first visit by a U.S. aircraft carrier since 1975, deepening defense ties between the former enemies as China presses its claims to the disputed South China Sea.