I twisted off the stud on the left side of my front sway bar a year or two ago. Not having the new parts on hand and leaving on a trip, I center punched the remaining stud and drilled and tapped it for a 1/2″ coarse thread. Got a short grade 8 bolt from Tractor Supply and put it together with some washers and new bushings. Held for a couple week trip. Was a bit tight drilling the stud, did it with the tire on. Would have been easy with the tire off. As long as your stud broke at the threads and not up in the fat part (likely) this should work. Most of the stress on the stud is vertical and even with the drilling and tapping of the threaded end it should have enough remaining strength, the greatest stress is where it leaves the sway bar, the nut and washer just keep the bushings from popping out. I found a photo of the temporary repair:
Regarding the eventual replacement of the stud, be sure you have the right one before tearing into it, there are several in the catalog. I removed sway bar, pretty easy with tires off and jacked up. Be sure to mark position of the level sensor clamp on middle of sway bar to simplify reassembly and not have to adjust level.
Was able to pound out old stud with large hammer and good bucking on the sway bar. Put new stud in freezer and quickly pressed it in on a 30 ton press and did not seem to be heavily working the press. Make sure you have it pointing in the right direction before pressing it in. Don’t ask how I know this – I got it right on this one but in the remote past I pressed some parts into place in the wrong direction. Then you have to get new parts because some parts don’t hold so well after multiple pressings and considering the deformation of the removed stud, this is one of them.