Complex sentence: The soldiers were intended to maintain the barrier to Russian eastward expansion until the area could be populated with Mexican citizens and control the Native American groups inside and outside the border.
Split into simpler sentences: The soldiers were intended to maintain the barrier to Russian eastward expansion until the area could be populated with Mexican citizens. They were also expected to control the Native American groups inside and outside the border.