A judge gave FBI permission to seize an internet domain that authorities charge a Russian hacking group known as Sofacy was using to control infected devices.