The president’s impressive show of hospitality costs America nothing — but his trade and economic policies position the US to win the competition with China over time.