Biden’s withdrawal injects uncertainty into wars, trade disputes and other foreign policy challenges