Wells Fargo has agreed to pay $1 billion to settle a class action lawsuit for overstating its progress following the bank’s fake accounts scandal nearly a decade ago.