It prompted a diplomatic protest from China which the outgoing Obama administration warned could undermine progress in relations with Beijing, which has been carefully built up over decades by both Republican and Democratic administrations.