The ‘unprecedented’ outside money expenditures came in the final weeks of key campaigns for the closely divided Legislature.