An economy on the brink of recession and 9% inflation weren’t enough to stop state government’s surplus from shattering the $4 billion mark, Gov. Ned Lamont’s budget office reported Wednesday.