California Democrats cap legislative year with climate wins