U.S. Sen. Lindsey Graham testified Tuesday before a special grand jury that’s investigating whether President Donald Trump and others illegally meddled in the 2020 election in Georgia.

The South Carolina Republican’s appearance before the panel came after a drawn-out legal fight that went all the way to the U.S. Supreme Court as Graham tried to avoid testifying. He had argued that his position as a senator shielded him from questioning. The courts rejected his assertion but did rule that prosecutors and grand jurors could not ask him about protected legislative activity.