Restaurant surcharges could remain legal in California under last-minute bill