A stubborn resistance from R Ashwin and Hanuma Vihari saw India manage to pull off an unlikely draw against Australia in the third Test at Sydney.