Illinois lawmakers reach deal to keep Sears HQ in state