The concept of tenure is definitely somewhat controversial, but it is incredibly difficult and rare to fire tenured professors. I doubt you could cite many if any examples of professors losing tenure because they're not publishing. (Although sure professors who don't publish probably won't receive tenure in the first place)