The role of the Court in environmental protection

More than two billion tonnes of waste are generated in the EU. How can the Court of Justice intervene if a Member State does not comply with European regulations?