Engine maker Cummins agreed to pay a $1.675 billion penalty and spend more than $325 million to remedy emissions violations.