Officials sign longshore pact for East, Gulf coasts