The Supreme Court bench freed a man wrongly convicted under anti-terror laws after ruling the identification was flawed