Pettitte pitches inning in Yankees' win