Germany and the European Commission have failed in a last attempt to reach an agreement on a law that shields carmaker Volkswagen from takeover, Germany's justice minister has said.