Although Neville Longbottom technically was the one who disarmed Voldemort, it was Harry's act of self-sacrifice that ultimately defeated him. This courageous act, combined with the fact that he saved the school from Voldemort's reign, earned him the crucial ten points.