Businesses don't care about ideologies in general. They care about money.
They will use and contribute to FOSS whenever it fits their cost-benefit analysis.
That means, they usually don't mind FOSS for stuff that they don't sell, but that is used as infrastructure for their products.
For example, nobody makes money selling a kernel, but a kernel is a necessary base for many different products. If, for example, I build a car entertainment system, people buy a car entertainment system. Being able to use Linux as a base saves a huge amount of development cost. So a company might use Linux here and maybe even contribute some code. Because they benefit from cooperation on infrastructure that they don't directly make money off.
But of course they aren't in it for the ideology, so once using/contributing to FOSS would hurt their earnings, they will stop doing that.