Sportswear giant Nike has defused a row over sub-contractor worker rights by signing a wide-ranging agreement with union officials in Honduras.