Nick Foles threw a tying touchdown pass with 3:25 to go, and then set up Cody Parkey for the winning 36-yard field goal as time expired, lifting Philadelphia to a 30-27 win at Indianapolis on Monday night.