Washington had been a buffer against China’s efforts to use UNESCO to influence education, historical designations and even artificial intelligence.