The Israeli government waged a decade-long campaign to protect its officials from criminal proceedings in Britain, leaked files show.