The High Court ruled that forcing former immigration detainees to wear ankle bracelets and live under curfews is unlawful, in a massive blow to the Albanese government that Tony Burke vowed to counter with new laws.