Electrifying ports would allow ships to shut off their diesel engines while docked and rely on electricity for operations, reducing emissions.