Complex sentence: Until nightfall the Apaches were bombarded until they broke and fled the engagement in all directions, abandoning the breastworks and leaving the Union troops with a victory and access to the spring.
Split into simpler sentences: Until nightfall the Apaches were bombarded until breaking lose and fleeing the engagement in all directions. Thus abandoning the breastworks and leaving the Union troops with a victory and access to the spring.