Officials have long eyed “virtual power plants,” which coordinate energy use across thousands of homes, but the state has lagged in adopting them.