lots of options here, depending on your design intent.
if the line and spline are defined by a single sketch, you can add a tangency constraint between them.
if the line and spline are individual elements that you joined, you can edit the original geometry and make spline tangent to the line, or the line tangent to the spline.