The shooter is expected to get life in prison after killing 10 people in a racially motivated attack.