Chief Judicial Magistrate Narender Kumar asked the girl to live with Sanjiv after she recorded her statement that she had willingly married the youth and converted her religion.
The girl, who was produced in the court yesterday, was found to be major as per the medical test.
The court ordered that the girl be allowed to live with the boy and police protection be given.
Security has been tightened in the city after people protested over the incident.
