Christmas has come early for California’s legal aid organizations.

This month, $40 million is going out to more than 100 nonprofits and charities across the state from money left over in a class action settlement with makers of chewing tobacco.