Yankees top Rangers 4-2 in series finale