Volkswagen and its German works council have agreed a deal that will make the car maker more efficient.