It means that as a Member of Congress, he couldn’t be detained/arrested while Congress was conducting business while in session..
I think it was in the back of his mind to take advantage of that, but he was later told differently, likely by his own lawyers.