Beijing’s diplomats have been abruptly ordered out by the Trump administration. The country has threatened retaliation.