A federal judge on Friday threw out President Donald Trump’s $15 billion defamation lawsuit against the New York Times over its content, calling it a “decidedly improper and impermissible” effort to attack his adversaries.