The agreement comes as Mexico continues to negotiate with the Trump administration over its tariff threats.