Trump has generally struck an upbeat tone with China, challenging the limits of his own Republican Party’s appetite for closer ties with a country that many hawks see as America’s chief geopolitical adversary.