A federal judge in Florida has dismissed a poet's copyright infringement lawsuit against Taylor Swift.