David Bowie’s stunt double, Nick Gillard, was attached to a support (it goes up his leg and supports his back and was edited out in post) that swung him up and around. You can actually see the support in the above image if you look around at the shadow.
You can see them filming this scene on the behind the scenes footage here on youtube.
Edit: Thank you yourfluffiestnightmare for pointing out that it was David Bowie’s stunt double, not David Bowie himself. Thank you to Wildblueyoshi for pointing out that you can see the support on the shadow.