State governments across the country are laying off teachers, closing public libraries and parks, and reducing health care services, but there is one place they could get $23 billion if they could only agree how to do it: Internet retailers such as Amazon.com.