Tory immigration spokesman Damian Green was warned he faced life imprisonment when he was arrested over Home Office leaks.