So the way this works is you use the tangent of the curve to get a vector you want to align your instances to. You can then use the Align Euler to Vector node to choose the correct Alignment. Here I chose ‘Y’ because the instance object is on the Y axis. If it was on the X axis I’d use X instead. This saves you having to rotate the orginal object, which is useful if you are linking it from another file or rotating it breaks something else.
I also used a bezier curve here to show that as the curve bends, the tangent will shift, this means that the object should tilt with the curve.
Its not always obvious on a straight curve whether the rotation on the instances will remain constant on a different curve. Anyways, I hope that gives you another option to play with.