A district court judge has temporarily ordered a pharmaceutical company to halt the delivery of spam messages promoting herbal pills claiming to help shed pounds.