The decision by U.S. District Judge Vince Chhabria in San Francisco followed years of litigation and weeks of hearings about the controversial science surrounding the safety of the chemical glyphosate, the key ingredient in Monsanto's top-selling weed-killer.

Monsanto is now a unit of Bayer, following a $62.5 billion takeover of the U.S. seed major which closed in June.

The U.S. Environmental Protection Agency last September concluded glyphosate is likely not carcinogenic to humans. But the World Health Organization in 2015 classified glyphosate as "probably carcinogenic to humans."

Chhabria called the plaintiffs' expert opinions "shaky" and entirely excluded the opinions of two scientists. But he said a reasonable jury could conclude, based on the findings of four experts he allowed, that glyphosate can cause cancer in humans.

The plaintiffs will next have to prove Roundup caused cancer in specific people whose cases will be selected for test trials, a phase Chhabria in his Tuesday opinion called a "daunting challenge."

Lawsuits by more than 400 farmers, landscapers and consumers who claim Roundup caused them to develop non-Hodgkin's Lymphoma, a type of blood cell cancer, have been consolidated before Chhabria.

Monsanto denies the allegations and in a statement said it would continue to defend the lawsuits with evidence proving there is "absolutely no connection between glyphosate and cancer." The company said its position was supported by more than 800 scientific studies and reviews.

The company had told Chhabria in March that none of the plaintiffs' experts satisfied scientific or legal requirements for admissibility and urged the judge to dismiss the cases.

Aimee Wagstaff, one of the lawyers representing the people suing the company, in a statement said she was pleased her clients will have their day in court. "It's time to hold Monsanto accountable for putting this dangerous product on the market," Wagstaff said.

Monsanto faces 5,000 lawsuits nationwide alleging Roundup caused cancer, mainly in state courts.

While Chhabria's ruling is not binding on them, state court judges have been closely following the federal litigation and expert hearings. The California state judge who handles the most Roundup cases posted to her docket that she was attending the hearings before Chhabria in March.

(Reporting by Tina Bellon; Editing by Frances Kerry, Marguerita Choy and David Gregorio)

By Tina Bellon