https://www.newsweek.com/exclusive-president-trump-moves-mil...
https://en.wikipedia.org/wiki/District_of_Columbia_National_...
"In short, yes under certain circumstances.
....
The Insurrection Act says the approval of governors isn't required when the president determines the situation in a state makes it impossible to enforce US laws, or when citizens' rights are threatened.
Another law passed in 1878 requires congressional authorisation for domestic military use, but a legal expert told the BBC that the Insurrection Act was sufficient legal authority on its own for the president to deploy the army...."
With that said, let's hope that there won't be any more blood.
Trump calling to deploy "thousands and thousands" of "heavily armed troops" in US cities is much less obviously legal but hasn't really happened yet.
23 states deployed national guard in response to protests.
The obscene threat from trump was that he was going to deploy active duty military to states as well - which he hasn’t done and which would be unprecedented and extremely dangerous. He and Barr did take a half step by deploying other federal law enforcement in the capitol (DEA/BOP/DHS) which they likely did illegally as those organizations have no statutory authority in crowd control but the military would be an entirely new escalation and one that the joint chiefs / Esper seem to have talked him out of.