Corey and Trevor play this role in Trailer Park Boys: The Movie. When they're arrested along with Ricky for robbing a movie theater, they become the most popular guys in prison by yanking down the pants of the Jerkass head prison guard after he loses a ball hockey tournament between the guards and the inmates.
Spud in the film Trainspotting spends most of the film getting humiliated. In the end, he is the only accomplice of the drug deal who receives his share from Renton.
In Ghostbusters II, poor Lewis (the Butt Monkey from the first film) gets accolades from the crowd when it seems like he's the one that chased off the movie's main villain. He also finds love with Janine Melnitz, of all people.
Milton from Office Space finally gets his in the end when he burns down the Ini-Tech building and makes off with the money - and he gets his Swingline Stapler back!