Justice S N Dhingra quashed the trial court order of July 6, 2009, taking cognisance of the chargesheet filed against two journalists, Anirudh Bahal and Suhasini Raj.
"Charging the petitioners under the Prevention of Corruption Act would amount to discouraging the people of this country from performing their duties enjoined upon them by the Constitution as well as the Criminal Procedure Code," the court said.
Both the journalists, reporters from Cobrapost.com, had challenged a summoning order issued by a special judge after taking cognisance of the chargesheet filed against them along with the tainted MPs by Delhi police.
The court had on September 17 reserved its order on the petition of the journalists, who conducted sting operation to highlight the cash-for-query scam involving 11 MPs of different political parties.
During the arguments, Delhi Police's counsel had justified the initiation of proceedings against Bahal and Raj contending they had offered money to the then parliamentarians, which was an encouragement to corruption.
However, the argument was countered by the counsel for the journalists who had submitted that if the money had not been offered to the MPs, the sting operation would not have been conducted.
Eleven MPs were caught on camera accepting bribes for raising and tabling questions in Parliament in December 2005.
The inquiry committee of both the Houses of Parliament had recommended the expulsion of the 11 MPs -- ten from Lok Sabha and one from Rajya Sabha.
The police, on the recommendations of the parliamentary committee, registered FIRs against the journalists and probed the role of the middleman in the sting operation.
The FIR was filed under sections 12 and 13 of the Prevention of Corruption Act and section 120 B (Conspiracy) of the Indian Penal Code.
The media persons had then approached the high court seeking to quash the proceedings against them, alleging that the police were shielding the corrupt MPs and framing them in the case instead.
Following a chargesheet by the specialised Crime Branch of the Delhi Police, Special Judge Rakesh Siddharth had summoned the journalists as well as the MPs.
The proceedings against the MPs would continue for the time being before the special court.
Why sting operations are good for India
How much does an MP earn?
Coverage: Cash for query scam