The agreement includes a new defense partnership and reduced checks on food and drink, removing some trade barriers after months of negotiations.