This is a complete guess. I wonder if you could 90 and then street 90 the pipe or possibly use two 45s, one of them street, to raise the pipe up a little once it comes out of the wall? It would be a wobbly pipe but it might just be covered by the spout.
How would that measure up?
You would have to be very careful soldering near that tub, even if it did work. Is that an acrylic solution?
Or, probably easier, would be to find a spout that does not screw on, but has a set screw near the front, and notch the spout to fit (if they make them like that).