Prisoner to sue Home Office