The vote was 31-14 Wednesday.

The bill increases requirements to use energy sources like wind and solar to 25 percent by 2020. That's up from the current goal of 20 percent by 2022.

The House passed a similar bill last month 92-43. The two chambers will need to pass the same version of the measure before Monday at midnight to send the bill to Gov. Larry Hogan.

This legislative session has been a positive one for clean energy in Maryland.

On Monday, Hogan signed a bill setting a new 40 percent greenhouse-gas reduction target for 2030. The measure builds on a 2009 state law that required Maryland to reduce emissions 25 percent by 2020 from 2006 levels.