A landmark High Court ruling freed the man from indefinite immigration detention, but he has now been sentenced to a jail term for dozens of visa condition breaches.