This seems questionable given that covid-19 relief funds from the federal government left states flush with cash, causing them to spend lavishly or even cut taxes. It also makes me suspicious of the other examples. Recessions happen every 5-10 years, and if you count the few years after a recession as part of the recession, it's not hard to pattern match a little too aggressively and think it's tied to economic downturns, when it's really a secular trend.
https://www.syracuse.com/news/2017/07/one_mans_huge_lottery_...
The problem in this case is not that the lotto exists, it's that the formula for awarding school funding is (or was?) broken in this state. This is a textbook example of why you almost always use the median instead of mean on things that have a bell curve.