Nuclear submarine supplier to be sold to US buyer after diplomatic row