Trump said the agreement puts the companies' commitment to self-regulation on paper.