Maryland would extend for two years a tax credit for the installation of residential or commercial energy storage systems under legislation passed by the state Senate.