Pay the piper

To face the results of one’s actions, to be punished for something.

The city government was forced to pay the piper after many years of bad management.