How to align an object with floor normal without it rotating on the Y axis?

When I try to align an object around a sphere, the alignment is incorrect.
you can see in the video that it is rotating on the y axis of the object too.

2024-01-31 23-00-06_1

I am doing it with Quaternion.FromToRotation

How can I make it align normally without it rotating on the Y axis of the transform?