All you have to do is loosen the stem bolt where the handlebars fit into the top of the fork (it's a threaded fork, so the headset adjustment won't be affected), rotate the fork back around (making sure the cables don't get tangled), realign the stem, and tighten it up again.