The court after the war would rubber stamp anything Lincoln did, because to do otherwise would have created massive upheaval. Their decisions around this time had nothing to do with facts or law, and were simply a matter of politics.
Actually that hasn't changed much since then either.
So you cite your opinion, unsubstantiated by law. Got it.