A bit of Deus ex machina at the end where there just happen to be a law that fixed everything but still a great show none the less. Very emotional and I suspect the Enterprise crew has a future adversary in that PITA Vulcan Admiral.
I didn't take it as Deus ex machina, her testimony was expertly written to mirror our current definitions of an asylum seeker and the Starfleet Captain's discretion regarding asylum seekers matches international maritime law.