A council’s decision to refuse plans for an energy storage facility has been overturned by the Planning Inspectorate.