Butter is rather low volume, so maybe it's doable. But it's very hard to compete with self-replicating organisms that have evolved specifically to use the energy sources, materials and conditions that are abundant on this planet. I'd be more more interested if someone had made a plant make butter.
Having a bunch of machinery sit idle waiting for power to be cheap isn't particularly good use of resources either. We'd be better off trying to store the power.