Australia to reopen Christmas Island detention centre after defeat on refugee policy