to complete an activity successfully or to produce a good result, especially when you were not expected to
Usage notes: In card games, trumps are a set of cards which have been chosen to have the highest value during the game.
John's uncle came up trumps and found us a place to stay at the last minute.