Student wins case against teacher who ordered him to leave class