A class-action lawsuit secured a 50-year plan to restore Brevard County beaches, protecting homes and wildlife.