A judge in Virginia has ruled that a teacher who was shot by her 6-year-old student in class can press forward with a $40 million lawsuit.