US arms export growth was driven by countries seeking to replenish weapons stocks that were donated to Ukraine.