Determined to thwart the automating of their jobs, about 45,000 dockworkers along the U.S. East and Gulf Coasts are threatening to strike on Oct. 1, a move that would shut down ports that handle about half the nation’s cargo from ships