All civil proceedings pending against members of the legislature shall be stayed during their attendance at the sessions of their respective houses and during the time required in going to and returning from the same.