Judge says govt. broke law in grizzly bear case