England survived a courageous second innings fightback by India's Ravindra Jadeja on the final day of the third Test.