SACRAMENTO — California lawmakers have approved a measure that would make the state the first to impose a ban on single-use plastic bags.

The bill cleared the Senate on a 22-15 vote on Friday and was sent to Gov. Jerry Brown for his signature. The Assembly had approved the measure a day earlier.

Some senators who had previously opposed the bill — including the incoming Senate president pro tem, Kevin de León, Democrat of Los Angeles — supported it this time after protections were added for plastic-bag manufacturers.

The bill would prohibit single-use plastic bags at grocery stores and large pharmacies starting in 2015 and at convenience stores starting in 2016. It includes $2 million in loans to help manufacturers shift to producing reusable bags and allows grocers to charge 10 cents each for paper and reusable bags.