An agreement gives firms certainty after months of chaos from Donald Trump’s tariff policy.