Most (all?) dealers in California offer some kind of 24/48 hour insurance for you to legally drive home. The prices are sort of ridiculous when compared to normal car insurance ($50-$100 for a couple days of coverage IIRC), but thats just a function of the risk profile and the fixed underwriting costs of a short policy.