The US just cut a deal with a major ally that will put China's submarines in their crosshairs