Baltimore’s port could be closed for months, keeping people out of work and leaving freighters looking for places to route their loads.