No room to unscrew kitchen faucet
It looks to me like the nut on the spout would turn independently of the spout itself. Put the faucet back in its original position and turn that nut while holding the spout stationary. See if you can thread that off and pull the spout out, then you'll be able to rotate the faucet body.
If that's not the case, it looks like you'd be able to find a position that would allow you to spin the spout, or a combination of positions as you turn it and the faucet body simultaneously.