(Reuters) - General Motors Co was accused in a lawsuit on Thursday of rigging hundreds of thousands of diesel trucks with devices similar to those used by Volkswagen AG , to ensure they pass emissions tests.