"an imoral, but just, law."

I don't understand. Would you mind explaining?