Forget the moon or fusion reactors: They never heard of solar panels? Quicker, cheaper, and could be deployed to a lot more homes, and isolated so that if someone attacks one it doesn't knock it all out. Just grab an industrial replicator or two, load it up in a cargo shuttle, fly from location to location replicating a generator in a box: beam down, turn on.
For all it's "Wow, they're so advanced!". Star Trek races and powers, seem to lack common sense.
Hell, I even over thought. Screw the shuttle, just set up production areas n the affected areas, replicate or on an orbital station, transporter over the location.