Lego said it added 22 megawatt peak — the unit of measurement for the maximum power output a solar photovoltaic system can produce — of solar energy capacity to its operations last year.