The settlements avoid a California trial next month that was expected to set the tone for hundreds of similar cases.