I think there are about 500K Homeless in America, would it make sense to first offer about 20K of them some free housing?
If you think this is some gotcha (you can't help with Afghan refugees during a crisis until you've solved homelessness ?) then you never cared about the homeless in the first place, and are using them as a pawn when it's useful to dunk on the middle east.
At the same time many hotels and airbnbs are under capacity because travel is restricted. It is a fair question why the homeless aren't hosted there. We don't have to expect Airbnb to pay for it but the government could if they actually cared about people, instead of terrorizing school kids and bankrupting the state with neverending lockdowns and restrictions.