Gov. J.B. Pritzker has signed sweeping energy legislation that will add a new line item to Illinois utility bills.