If the US president can make good on his promises to greatly increase defence spending and cut corporate taxes, he will create headaches for Beijing. Fortunately, China can still find relief using history as its guide