By harnessing automation and modular and dual-use designs, the United States’ Asian allies have built formidable shipbuilding industries.