As 20 million jobs vanished at the start of the coronavirus pandemic and traffic jams formed outside food banks, many experts warned that the twin crises of unemployment and disease would produce soaring rates of hunger.

But huge expansions of government aid followed, and data released on Wednesday suggests the extraordinary spending achieved a major goal: Despite shuttered businesses and schools, food insecurity remained unchanged from prepandemic levels. That result defied past experience, when recessions caused food hardship to spike.