Judge must consider protections for grayling