Deal reached on Trans-Pacific Partnership trade agreement