Plans for a solar farm and battery storage park the size of more than 100 football pitches have been approved by councillors.