A US judge said Donald Trump had not “plausibly alleged that defendants published the article with actual malice,” but allowed him to refile the case.