Grades can magnify inequities that exist in American schools, making it harder for some students to succeed.