Dockworkers at ports in Baltimore and along the East and Gulf coasts agreed to a labor contract with maritime employers just days before a deadline, averting a threatened strike.The International Longshoremen’s Association reached a tentative agreement late Wednesday on a new, six-year contract with the U.S. Maritime Alliance, the group representing port operators and shipping…