The UK government has decided to appeal a court decision to block the deportation of a migrant who was set to leave the country under a new “one in, one out” deal with France.