California Democrats on brink of historic control of both houses