ALBANY, N.Y. — Agricultural, food and beverage companies have spent millions of dollars to defeat legislation in New York state that would require labels on food containing ingredients from genetically modified crops, highlighting the state's key role in the debate about what Americans should know about the products they consume.