Daimler will pay $2.2 billion to resolve a US government diesel emissions cheating investigation and claims from 250 000 US vehicle owners, court documents show.