WASHINGTON — Prime Minister Narendra Modi of India condemned global terrorism and said during a lengthy address to Congress on Wednesday that growing economic ties benefit both his country and the United States.

“The innovation strength of our two countries comes together in California,” said Mr. Modi, who visited California last year. “Here, the innovative genius of America and India’s intellectual creativity are working to shape new industries of the future.”

Mr. Modi made clear that he intended the speech to hail a new moment in relations between the United States and India when he told Congress at the outset that he had started his visit to Washington with a trip to Arlington National Cemetery. He called it “the final resting place of many brave soldiers of this great land.”

“I honored their courage and sacrifice for the ideals of freedom and democracy,” Mr. Modi added.

Indian leaders have long been skeptical of American military power and have often been deeply critical of the Vietnam War and other military interventions by the United States. Celebrating American war dead, though, was a telling signal of what both sides say is a very different relationship between the two countries.