Attorneys from the NAACP Legal Defense Fund and Stanford Law School filed 18 petitions seeking to reduce the prison terms of people in five counties — including Los Angeles and Riverside — citing “gross racial disparities” in how they were sentenced for crimes.