The case tests the statute used to prosecute hundreds of defendants charged with invading the Capitol to stop the counting of electoral ballots for president in 2020.