"Freedom of commerce" doesn't mean "unchecked globalism" - there are plenty of dual-use items that only friendly countries or citizens can obtain (and within those categories, there aren't any further restrictions besides "don't share.")