West Coast longshore workers at 29 ports along California, Oregon and Washington have ratified a three-year contract extension with the Pacific Maritime Association.