I doubt that distinction protects the funds from a judgment creditor. The endowment money belongs to the university. Even though the university can only spend it in a certain way, that is an internal matter between the university and its donors. If the university did not have other funds from which to pay the judgment, I doubt the endowment money is protected just because it wasn't earmarked for "in case you lose a lawsuit."