Judge upholds home rule in zoning of natural gas drilling