Judge orders halt to new oil, gas permits in Kern County