Additional Sessions Judge Savita Rao allowed Ansari, an MLA from Mau, to attend the assembly session beginning May 28.
"A letter dated May 23, 2012 sent by jail superintendent, Agra Jail, UP has been placed on record seeking the permission for production of accused (Ansari) to attend the Legislative Assembly Session.
"Accused Mukhtar Ansari, as reported, is a sitting MLA from UP Legislative Assembly. Permission is accordingly accorded for his production to attend the Vidhan Sabha proceedings in the coming sessions of Vidhan Sabha, UP," the court said.
An independent legislator form Mau and an accused in the 2005 murder of BJP MLA Krishnanand Rai, 53-year-old Ansari was charged earlier this month under section 3(4) of Maharashtra Control of Organised Crime Act (MCOCA) for being a member of an organised crime syndicate.