How does the sentence end?

The math department at the school excelled, while the history department floundered, as the district put massive funds into the
math department.