"Pride as well as shame" is not "ends as well as means", it is "it caused good as well as bad".
For example, the Wikipedia article on a different colonial empire, the Umayyad caliphate, is positively aglow with all the good it did (in addition to enslaving some of its subjects): https://en.wikipedia.org/wiki/Al-Andalus