How would this be an attacker vector? Ultimately, limiting bitcoin mining due to overreaching energy regulations does nothing to the security of the network. The difficulty adjustment takes care of that. A block is mined every 10 minutes no matter what. In the meantime, mining is literally turning energy into cash.
So, the government could either try to regulate the hell out of mining, doing absolutely nothing to the network, or they can profit by allowing mining to boost the local economy. Politicians that fight mining have a massive uphill battle.