Some of President Trump’s pressure tactics appear to have backfired, sending would-be allies into the embrace of China.