Hiring the gold standard in labor lawyers for a big case at the U.S. Supreme Court didn’t make a difference for the California attorney general’s office after all.

The nation’s highest court ruled against the state Thursday by striking down an 8-year-old law that prohibited companies that take more than $10,000 in state funds from using that money to “assist, promote or deter union organizing.”