The legislation comes amid high utility bills, and as the state tries to meet its clean energy goals and keep electricity affordable for Marylanders.