How to bend extrusion along a sphere
I don't know if there's a way to automatically find the perfect curve but you could try this with W > LoopTools > Bridge Edge Loops then play with the factors on the bottom of the Tools panel in 2.7 (or bottom left Adjust Last Operation box in 2.8), especially Segments and Strength.