California's lawmakers ended a two-year session on Saturday with a package of bills that reflected deep disagreement over pressing issues including undocumented migrants, the social safety net and measures to cope with a severe drought.

In the final hours, they approved a ban on plastic grocery bags in the most populous U.S. state, a measure allowing guns to be temporarily removed from potentially violent people and campaign finance reforms spurred by a series of ethics scandals.

The session started with bold ambitions on the part of progressive Democrats, whose party controls both houses of the legislature and all statewide elective offices.