The agreement is a major step in Trump's plan to shake up global trade, which he says is weighted against America.