President Donald Trump announced a preliminary trade agreement with the European Union after months of tense talks.