Federal judge restores grizzly protections, canceling bear hunt