How is banning DJI drones in the US going to affect how they're being used in the war in Ukraine?
It will not.
Or do you mean that banning them in the US will somehow stop them from being used against the US in the future?
No.
This is about planning for the future. In the event of a war the US wants a large existing base of domestic drone manufacturers. Today, that just does not exist at scale as most are made in China. This is similar to efforts to re-shore chip manufacturing.