After the US and Mexico reached an agreement late on Friday to stave off tariffs on Mexican goods in return for concessions on immigration, Donald Trump heralded the deal but complained about its coverage by US media.