The collapse of Lehman Brothers, the once-venerable investment bank, set off a chain of events that led to a worldwide financial panic.