Billions of dollars spent on wastewater treatment and other infrastructure upgrades in Connecticut and New York have resulted in apparent improvements in Long Island Sound’s water quality, according to a report from the ecological nonprofit Save the Sound.