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