As Harvey Weinstein's criminal case moves to trial in New York, the former mogul scored a win on the West Coast Wednesday when a court dismissed part of Ashley Judd's sexual harassment suit against him.

Judge Philip S. Gutierrez of the United States District Court in Los Angeles ruled Wednesday that the actress' sexual harassment claim does not fall within the scope of a California statute. But the judge said Judd may proceed to trial with three separate allegations against Weinstein: defamation, economic interference and unfair competition, according to Judd's lawyer.

In July, Weinstein's lawyers called Judd's claim baseless. A judge at the time ruled that the California law Judd was suing under did not apply to the professional relationship she and the movie mogul had at the time.

"We have said from the beginning that this claim was unjustified, and we are pleased that the court saw it as we did," said Weinstein lawyer Phyllis Kupferstein in a statement to USA TODAY. "We believe that we will ultimately prevail on her remaining claims.”

Judd's lawyer was steadfast regardless of Wednesday's ruling in a statement to USA TODAY.

"Nothing about today's ruling changes that Ms. Judd's case is moving forward on multiple claims seeking millions of dollars in damages from Mr. Weinstein to punish his egregious misconduct," Theodore Boutrous Jr. said. "The court dismissed only one of Ms. Judd’s four claims for relief and our extremely strong case remains intact."

He continued: "The court made clear that it was not determining whether Ms. Judd was sexually harassed in the colloquial sense of the term. It even acknowledged that the common meaning of the words in the statute would encompass her professional relationship with Mr. Weinstein. Nevertheless, the court ruled that the statute does not apply here. While we respectfully disagree with the court’s decision as to the one claim it ruled on, we look forward to pursuing the three claims for relief that the court has already ruled can move forward."

The actress says Weinstein blocked her from a part in "The Lord of the Rings" two years after she refused his advances in a hotel room.

After the Weinstein scandal broke last fall, director Peter Jackson said in an interview that Miramax had discouraged him from hiring Judd and actress Mira Sorvino, describing them as a "nightmare to work with."

Weinstein, 66, also faces criminal prosecution in New York City and is the target of other criminal investigations.

The former movie mogul has denied engaging in nonconsensual sexual activity.

Contributing: Hannah Yasharoff, The Associated Press