The Cohomological Weighted Fundamental Lemma for Non-Split Groups