They received gold to shut them up. All the Jarls apparently. And the Empire stopped fighting when the Thalmor gave the option of the WGC. Bad, yes. But not because they wanted gold (that we know of. The council may have, but we don't know.)
Also stopped fighting because they lost so many men.
Now you could say that the legionnaires are there simply to do a job, and while I'm sure a lot believe in the cause, the cw mission does seem to make it look that way. But to say all of them are just fighting for gold is admittedly inaccurate.