A federal judge has rejected former President Donald Trump's bid to shield his tax returns from Congress.