Legislation aimed at quelling irresponsible behavior in California’s school bond industry will go to the governor’s desk — with a couple of key loopholes.