Ankle monitoring, curfews for former immigration detainees ruled ‘punitive’ and unjustified: High Court