or to any penalties or pains by virtue of that law, (except those employed in the army or navy, and except the militia in actual service) but by the authority of the Legislature.