The same way every government program is paid for; taxes. Greece's problem wasn't spending, the problem is that the Greek government is ridiculously corrupt which means they collect fuck all in tax revenues.
The debt ceiling exists as a tool of a political showmanship, it serves no useful purpose.