High court upholds fracking bans; zoning important function of local government