The deal was reached with assistance from acting U.S. secretary of Labor Julie Su, ending an 11-month labor battle at the ports.