The best thing to do is just reduce stress on the tadpoles to give them a chance to recover on their own. Keep the water as pristine as possible with frequent water changes and hope for the best. Don't take it too hard if they don't all make it; metamorphosis is very rough even on the healthiest tadpoles.