The Federal Appellate Court in DC ruled that though the actual raid of Congressman's Jefferson's office in the capitol was was legal, the inspection of all confiscated documents was not, since it involved items related to legislative business. This was found to violate the separation of powers.
You can read the opinion here.