Attack submarines are one of the major weapons the U.S. relies on to counter China’s military threat in the Pacific.