Solar accounted for most of the capacity the nation added to its electric grids last year. That feat marks the first time since World War II, when hydropower was booming, that a renewable power source has comprised more than half of the nation’s energy additions.