Deal includes extension of federal flood insurance.