Ankle bracelets and curfews on former immigration detainees will be stripped, with Australia's highest court ruling them invalid.