Why did the Supreme Court order the return of passport to Ranveer Allahbadia in the 'India's Got Latent' row?

Analyze the judicial reasoning behind this decision.