The court ruling came in response to a suit filed by a man whose name was kept secret because he already has been using marijuana to treat his headaches, his attorneys said. Since adolescence, the middle-age man has suffered migraines up to three times a week, lasting from several hours up to three days, attorney Robert Bauerschmidt said.