Negotiators from the United States and Panama have reached a deal on the exchange of tax information that paves the way for a long-stalled trade pact between the two countries.