The US president has vowed to revive American shipbuilding after lagging behind China in naval capacity.