When the state approved Eversource's electrical substation in East Boston, it did so with an unusual caveat: It said the company had to do something extra to benefit the community. But, as it turns out, the community may end up helping to pay for those benefits.