Found the solution to programmatically enable Loop Time to true.
AnimationClip clip = new();
Debug.Log(clip.isLooping) // false
AnimationUtility.SetAnimationClipSettings(clip, new()
{
loopTime = true
});
Debug.Log(clip.isLooping) // true
This is tied to the same value as clip.isLooping
.