Communities in the Capital Region and Hudson Valley received $24.7 million through the state’s Water Quality Improvement Project and Resilient Watersheds Grant programs.