A Florida judge has dismissed Donald Trump's lawsuit against The New York Times, but granted him an opportunity for a new legal attempt.