The federal government says it will introduce new legislation after the High Court struck down a law allowing those released from immigration detention to be monitored by electronic ankle bracelets.