The victory ended a three-game New York losing streak and marked the second consecutive solid start for Hughes (4-7), who allowed one run on six hits and struck out three in seven innings of work.
Swarzak worked in relief of starter Samuel Deduno (4-3), who took the loss by giving up three runs on five hits over six innings.
Minnesota scored two of its three runs in the bottom of the ninth on an RBI double by Brian Dozier.
Benedict Cumberbatch's dramatic reading of R. Kelly lyrics is just what you need
Beyonce flaunts bikini body, Blue Ivy in vacation pics