The settlement includes $4 billion in civil penalties, $2.5 billion in aid to consumers, and $500 million in restitution to the FDIC and five states that bought faulty mortgage-bond securities from the banking giant.