Hegseth said the spending plan would allow the United States to expand its military capabilities and help Ukraine.