The campaign over Initiative 522 drew millions of dollars from out of state and was one of the costliest initiative fights in state history.

The measure was failing 46 percent to 54 percent after more ballots were counted Wednesday evening, with the “yes” side trailing by almost 100,000 votes.

Had voters approved I-522, Washington would’ve been the first state to put in place labeling requirements for genetically modified foods. The opposition raised $22 million to defeat the measure.

Money came from Monsanto Co., DuPont Pioneer and the Grocery Manufacturers Association, which collected millions in donations from the nation’s top food companies, including Nestle SA, General Mills Inc., Coca-Cola Co. and PepsiCo Inc. Many of those companies mounted a $46 million defense to defeat a similar food-labeling measure in California last year.