Ports in the United States have a historic opportunity to upgrade aging infrastructure with billions of dollars in federal funding that will prepare facilities for years’ worth of expected growth in freight movement and ready them for a future where many are targeting eventual carbon-neutral operations.