An international spam network was ordered to shut down, stopping what the authorities say was one of the most prolific spam gangs on the Internet.