She and prosecutors agreed to a sentence of 18 years to life in prison for the crash that killed a woman and injured dozens.