A grant program of the National Oceanic and Atmospheric Administration aims to help the resilience of coastal cities and towns.