Volkswagen forges US deal to buy back or fix about a half million polluting diesel cars and set up environmental and consumer compensation funds.