Judge restores protections for gray wolves across much of US