The Department of Justice has ordered a recall of 600,000 Ram trucks as part of a settlement that directs engine maker Cummins Inc. to remedy environmental damage it caused when it illegally installed emissions control software in several hundred thousand vehicles, skirting emissions testing.