Rivera gets record 602nd save, Yankees beat Twins