The European Commission has dropped legal action against Germany's deposit and return scheme for drinks packaging, concluding reforms stopped it being an illegal restriction of trade within the EU.