When did the phrase "good enough for government work" start to be used in an ironic way?

by [deleted]
LegalAction

It's ironic? I always took it literally. The implication being it's not great work, but sufficient for the price. What would an ironic reading of that phrase mean?