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.
Scarlett Johansson steps out with fiance after pregnancy reveal
Teacher apologizes for showing sexual image of herself in class