Good enough for government work

What is the origin of the phrase "good enough for government work"? I understand that it may have the opposite meaning in its early days.

Replies