The Illinois attorney general’s office agreed in federal court Friday to give a Schaumburg-based school district permission to administer medical marijuana to an 11-year-old student to treat her for seizure disorders that resulted from chemotherapy treatments for leukemia.

Judge John Robert Blakey went along with that decision at a hearing held on a lawsuit filed by the parents of the girl, a 6th-grader at Hanover Highlands school in Hanover Park.

School district officials said they will administer cannabis to the student until they get further clarification from the attorney general. The court case was continued until next Friday.

An assistant attorney general told the court that his office would allow the school to administer the drug for the next week without fear of prosecution and until his office can figure out how to address the state law that prohibits possession or use of marijuana at school.

Parents Jim and Maureen Surin said after the hearing that they were relieved and excited by the ruling because marijuana has been so beneficial for their daughter Ashley. Since getting her state medical marijuana card the first week of December, Ashley has been wearing a patch on her foot and rubbing marijuana oil on her wrist.

It has reduced her seizures from one to three a day to just one in the past month, and has allowed her to wean off one of her more traditional prescription drugs. She can think more clearly, concentrate and speak longer sentences because she is taking the marijuana oil, her parents said.

The lawsuit, filed Wednesday against School District 54 and the state of Illinois, could have far-reaching implications.

The suit claims that the state’s ban on taking the drug at school is unconstitutional because it denies the right to due process and violates the Individuals With Disabilities Education Act and the Americans with Disabilities Act.