The order issued Thursday does not legalize marijuana for medical or recreational use under federal law, and it is likely to face legal challenges.