The two countries reached a broad agreement to reduce trade barriers and rebuild ties, signaling a break from the U.S. trade agenda.