The government will introduce emergency laws to reintroduce ankle monitoring and curfews for immigration detainees after the High Court ruled it was unconstitutional.