Gov. Gavin Newsom and legislators turned to a series of gimmicks and indirect loans to close the gap, including $2.9 billion from assumed efficiency savings in state agencies and state universities.