Why do you say “Congress ruled” ? It was a US Supreme Court ruling.
But thanks for pointing to it. Its words echo Lincoln’s last speech’s casuistry and ignore that Texas joined as an independent sovereign nation.