A federal judge dealt a huge blow to Trump’s efforts to stonewall Congress