A fairly conservative source is here:
Bilateral aid to Ukraine between January 24, 2022, and January 15, 2023 https://www.cfr.org/article/how-much-aid-has-us-sent-ukraine... .
This by itself $76.8 billion in committed aid and does not include all U.S. spending related to the war. And newer appropriations made just after Jan 2023
https://usafacts.org/articles/how-much-money-has-the-us-give...
Please do that for border security in the U.S. Like Ukraine, there is utterly NO need to transfer all the money in ONE big bang - can do the same in chunks. As long as the "border aid" is allocated in chunks - we can have better drug scanners at ports, more personnel and patrols, more funds to care for actual migrants (as opposed to drug camels), investigative teams to track down drug-routes and personnel involved, etc
Ukraine received about $7b in 2022.
$12b does not look like a tiny fraction of $7b.