California's highest court on Monday ruled in favor of Gilead Sciences GILD.O, in a case addressing whether manufacturers of drugs that are considered safe must try developing drugs that could be safer.