Since passage of the 2011 smart-grid law, which allowed ComEd to invest heavily in the grid and change rates annually via a formula, the Chicago utility has contributed a greater share of parent Exelon’s earnings.