How can Boeing afford it?
Get government support. A hypersonic object with the mass of an airliner is an awesome weapon as well as prompt transport. Russia has invested heavily in this area, or at least bragged about it. I wouldn’t be surprised if the US had some projects in this area already, as well.
I strongly suspect that is what's behind this.