Leaders of both countries announced measures to stave off threatened 25-percent tariffs in short term.