Mexico had already promised to take many of the actions agreed to in Friday's immigration deal with the US -- months before President Donald Trump's tariff threat, officials from both countries who are familiar with the negotiations told the New York Times in a story published Saturday.