While setting aside the appointment of Mr Yadav as the UPPSC Chairman, a division bench of the court comprising Chief Justice DY Chandrachud and Justice Yashwant Verma held that the same was "arbitrary", "illegal", "ultra vires of Article 316 of the Constitution" and effected "without application of mind, ignoring suitability and availability of other candidates".
Mr Yadav, who took over in April, 2013, was selected from among 83 candidates who had submitted their bio-data before the state government for the post.
The order was passed while disposing of petitions filed by advocate Satish Kumar Singh and several others earlier this year.
The petitioners had alleged that Mr Yadav's appointment was made ignoring facts like his being named in cases under Section 307 of the Indian Penal Code (attempt to murder) and the Goonda Act registered in his native district of Agra.
It was, however, submitted by Mr Yadav that he has been acquitted in the cases while the High Court made it clear that it was passing today's order "without going into the merits of allegations of criminal antecedents of the respondent".
Moreover, the petitioners had alleged that Mr Yadav, who was posted as a lecturer at Chitragupta Degree College in Mainpuri district prior to his current assignment, had falsely claimed in his bio-data that he was the Principal.
The court, while perusing materials placed on record, noted with displeasure that Mr Yadav had concealed the fact that though he was promoted to the post of Principal many years ago, his promotion was challenged in the High Court and subsequently set aside and that the Special Leave Petition he filed in the Supreme Court was also turned down.
Moreover, the court pointed out a number of improprieties in the selection process, which included the fact that Mr Yadav's bio-data was "sent to the state government through fax from an office of the Samajwadi Party".
Besides, the court observed that a character certificate for Mr Yadav was sought only from Mainpuri and not from Agra even though a Government Order dated 12.9.1994 stipulated that such verification should take place both at places of one's work and permanent residence.
The court also took a grim view of the fact that a character certificate was issued from the office of the Mainpuri DM "on the very same day despite it being a Sunday" after "a special messenger, who carried the Chief Secretary's letter addressed to the DM, announced that the process has to be completed by Monday".
The order was greeted with cheers from competitive examination aspirants, who had gathered in large numbers outside the High Court premises, and took out a procession celebrating what they termed as their "moral victory".
A prayer had also been made for initiating a CBI inquiry against Mr Yadav.
Recently, an application was made for withdrawing the prayer and filing a separate petition demanding a CBI probe. The court said "the applicants are at liberty to file a fresh petition with regard to the aforesaid prayer".
Follow NDTV for latest election news and live coverage of assembly elections 2019 in Maharashtra and Haryana.
Subscribe to our YouTube channel, like us on Facebook or follow us on Twitter and Instagram for latest news and live news updates.