Rory McIlroy took a lead on the back nine he would never relinquish en route winning the AT&T Pebble Beach Pro-Am by two strokes.