Acting like this blunder is some random stroke of bad luck isn't telling the whole story.
I'm sure there's some degree of vested interest in protecting fossil energy because it means very concentrated profits in a way that renewables do not. Sunlight isn't owned by anybody (modulo Simpsons references) and nor is the Wind, but I'd expect that, if that was all it was, to manifest as diverting funding to transitional work, stuff that keeps $$$ in the right men's pockets, rather than trying to do a King Canute. Stuff like paying a wind farm not to be constructed feels very Trump-specific.
† The British even know what you do with kings who refuse to stop breaking the law. See Charles the First, though that's technically the English I suspect in this respect the Scots can follow along. If the King won't follow the Law, kill the King, problem solved.
EDIT: I think people are misunderstanding my response. I fully support local subsidies for solar and renewables. My question is why my tax dollars should go toward making it affordable for everyone, including non-Americans. Either market dynamics will handle that naturally, artificially (i.e., China's manufacturing subsidies), or else it is up to the local government to address the shortfall.
[1] https://www.bbc.com/news/business-20247734 (2012)
Or do you think that US federal investment in solar and battery technology would be bad for the American taxpayer?