Under the wide-ranging deal, any strategic threat to one country would represent a threat to the other.