A Los Angeles judge has ruled that coffee companies need to carry a cancer warning label in California.