A federal judge on Monday dismissed President Donald Trump's lawsuit to prevent the House Ways and Means Committee from obtaining his New York tax returns.