Isn't this just The Simpsons Movie?
"A force field encloses [a small town]. In the days that follow, the locals deal with rising temperatures, increased air pollution, the threat of dwindling supplies, and the power this sudden estrangement from consequences gives the town's less morally inclined citizens."