To display badges with Inventory Rule the following two conditions need to be fulfilled:
1. All the products need to have the Inventory Tracking Method set to 'Track inventory for this product'.
2. Inventory > Stock level > Stock level display settings should be configured to 'Show stock levels'.