The asteroid that killed off the dinosaurs gave birth to tropical rainforests, a study suggests.