The State Comptroller estimates that Hurricane Sandy and its aftermath will cost the state as much as $18 billion.