American students' math scores took a bigger hit from the pandemic than their peers overseas, according to a major international test.