It will be interesting what the California Supreme Court does.  I suspect they will overturn it given their "pro labor" ideology.  If it makes it to the US Supremes, the "contract" argument will likely prevail.