General Motors is being sued for allegedly rigging diesel engine versions of some of its trucks to pass emissions tests.