Ferrari overcomes late drama to win second consecutive 24 Hours of Le Mans