A federal judge has ruled in favor of an 11-year-old girl using medical marijuana at her elementary school to treat her leukemia.