Harry Potter was awarded the decisive 10 points by Dumbledore at the Leaving Feast in Philosopher's Stone.
Reason: "For pure nerve and outstanding courage" in confronting Voldemort/Quirrell and preventing the Stone's theft.
Nuance: Neville Longbottom also earned 10 points ("for standing up to his friends"), tying the score. But Harry's points were the final ones announced, cinematically presented as the "cup-winner." Ron and Hermione received 50 each earlier.