Valve's cash cow is Steam.
All of their games (Dota 2, CS, and the other ones they hardly maintain anymore) are basically just passion projects at this point, lingering on from a bygone age when they were a game development company.
Their most recent title, Half-Life: Alyx, probably only got greenlit because someone internally was able to convince leadership that it would help sell VR headsets.
They’re (genuinely) gearing up to release Half-Life 3 at the moment, and not as a VR exclusive
CS2 makes an enormous and non-negligible amount of money.