ISLAMABAD, Pakistan — A Christian girl accused of burning a religious textbook was released from jail on Saturday after a judge in Pakistan had granted her bail, a significant step in a controversy that has renewed scrutiny of the country’s blasphemy laws.

After a lengthy hearing with heated arguments on Friday, Justice Muhammad Azam Khan ordered that the girl, Rimsha Masih, be released on bail of one million rupees, or $10,500, sparing her what could have been months in a notorious high-security facility waiting for her case to come to trial.

On Saturday afternoon, the girl was spirited from a prison in Rawalpindi, a city near the Pakistani capital, according to local officials. Her lawyer told reporters he was working to have the case dismissed.

Given the widespread focus on the case and the anger it has generated, her departure took place under tight security. Ms. Masih was driven from the prison in an armored vehicle and taken to a waiting helicopter while covered with a sheet to protect her identity, according to an Associated Press reporter who was on the scene.