There was a Senate bill in the late 1850's voted on and failed. The bill made secession illegal. It is out there but hard to find. How could a bill like this come up if secession was illegal?
Here is another thread on Jeff Davis and his arrest and non trial.