Judge orders new study in bear habitat dispute