Larry and Sergey have 51% voting power. They are the ones deciding how much Sundar is paid. Put it the other way: if they don’t want to pay him that much: they have the power to do so.
As the ultimate owners of the company by shareholder votes, they approved the compensation of Sundar, and are the decision makers.