These stocks have proven their resilience during recessions over the decades.