Troy Parrott's hat-trick, including a 96th-minute winner, led Republic of Ireland to a 3–2 comesupport over Hungary, securing a World Cup playoff spot.