Rory McIlroy has cruised to the Players Championship title, winning a three-hole aggregate play-off over JJ Spaun after the American found water at the 17th.