Federal regulators and top executives at JPMorgan Chase and Bear Stearns told lawmakers Thursday that the 11th-hour deal between the two firms prevented a collapse that could have inflicted serious damage to the American financial system and the broader economy.