Last year, the Department of Homeland Security spent a record sum on guns and ammunition, a Trace analysis found.