The prime minister has said the migrant who was mistakenly released from prison and found again will be deported following an error that Reform UK likened to a "Monty Python sketch".