A federal court has held that sleeping is a “major life activity” under the Americans with Disability Act. Insomniacs around the country may take comfort.