I have mixed feelings about this.
On the one hand, I don't like the government telling private institutions what they can and cannot pay. It will probably disincentivize at least some talented people from joining a bank.
On the other hand, banks regulated by the Federal Reserve already have the provision for having compensation regulated. Also, in reality, banks aren't really private in that their business has an implicit subsidy by the government, so they are able to privatize profits and socialize losses onto the taxpayer. Since compensation played at least some part in the financial crisis by incentivizing bankers to take enormous risk for enormous pay, they threaten not only the viability of the financial system but also the economy as a whole.