A federal judge on Monday dismissed Donald Trump’s defamation lawsuit against the Wall Street Journal, a setback for the U.S.