As major U.S. seaports look to expand amid growing trade volume, neighboring communities are increasingly pushing back against efforts by local officials and freight-transportation businesses to increase the ports’ capacity, contending sprawling port infrastructure inhibits their way of life.