I'm not sure that after something like that Earth would be still habitable outside of arcology-style settlements with strictly controlled artificial internal weather.
PS. As to teaching the Federation how to live, the Star Wars universe is also not without its flaws. While they feel closer to an understanding of human nature, while they feel to me more... Human...
While these things are true, their technological and social achievements are underwhelming for tens of thousands of years with (post?)industrial space technology.
By "social achievements" I mean no lack of Federation-style "moral progress" and "let's hug everyone and sing kumbayah while feeling moral superiority constantly", certainly no. I mean, rather... Surprisingly low wealth per capita*, or atrocious crime rates, or sometimes outright lack of any firm authority (especially over places like the lower levels of Coruscant, or many less-developed planets, for example). In regards to these issues, Empire (and earlier Republic likewise, actually) is closer to the "Roman Republic/Empire in space" than to "the modern USA in Space".
*They must even have ancient/medieval economic growth patterns, that is 0.1% of growth per decade (and sometimes war-caused depression), otherwise, the long history of the Star Wars galaxy at constant levels of wealth would have no sense.