This question already has an answer here:
California passed a law this election year allowing the recreational use of marijuana. However, at the federal level, marijuana is still illegal. How can states pass laws that conflict with federal laws? Most important, can people who use marijuana in states in which recreational use is legal still get in trouble with federal authorities?