Right wing media turned against wind across the globe in that same 2006-2012 time period.
It basically got good enough to be a threat.
It wasn't driven by grass roots, Republican leaning voters stayed very positive on wind and solar up until Trump ran and it's been sliding downhill since then, but steady for Democratic leaning voters. But the WSJ was putting out op-ed attacking it as part of their climate change denial at that time. Obama ran on supporting it in 2007.