A couple foals throw up a basic shield spell and render the nukes harmless.
Ponies prance around armed soldiers and stop their bullets mid-air.
Humans are trivially subverted by the Equestrian army, those with hostile intentions are left on the dying planet while those who are at peace with others may come establish a colony.