At least in STEM, its all about the ability to get grants. A professor who consistently gets grants is worth their weight in gold in "indirect" costs. Foreigner or otherwise
Look at any department. It's rare for all of the professors to get big grants. Usually a substantial fraction are essentially paid by either undergraduate or graduate tuition. In these cases of the non-constellation professors, it's better to get someone who is both good enough and cheap.
At least in STEM, its all about the ability to get grants. A professor who consistently gets grants is worth their weight in gold in "indirect" costs. Foreigner or otherwise