I see what you're trying to say - but MS is not a defence contractor. The amount of business they do selling 'Windows' and 'Azure' to DoD is 100x whatever little tiny bit of co-research they are doing otherwise. It's not relevant to their business, that's just 'a tiny project that happens to cross into some field'.
I understand that technically, it's a project that can be used for defence, but if you say that MS is a 'defence contractor' - then you also have to say:
MS is an 'Investment Bank' - almost 50% of MSFT's Operations are financial. Their financial opts are bigger that most investment banks.
MS is a 'Healthcare Company'
MS is a 'Gaming Company'
MS is an 'Entertainment Company'
MS is XXX, YYY and ZZZ etc.
better: "MS is a Tech Conglomerate that sells Windows (OS), Office, Outlook, Sales and Ops SaaS, and has Bing some other services, with XBox as major subdivision. They have a major financial footprint, and also have research activities in other sectors."
Palantir is partially Defence contractor even if a minority of their business is defence, it's a strategic business line for them, and it's material to their existence.
> I understand that technically, it's a project that can be used for defence
No, it's a project commissioned by and built for defense needs. It's not that someone at the DoD saw how to creatively re-use an existing civilian project.