Both Gov. Tom Corbett and state Attorney General Kathleen Kane have been let out of a case challenging Pennsylvania’s ban on same-sex marriage, under a ruling announced by Commonwealth Court President Judge Dan Pellegrini from the bench Thursday morning.

The couples who brought the case had agreed to excuse Kane, who has called the ban unconstitutional, after her office said that it would comply with their discovery requests, said their lawyer, Alexander Bilus of Dechert. They couldn’t reach the same accord with the Corbett administration, he told the judge, which is why they wanted to keep Corbett in the matter as a defendant. Corbett is a Republican; Kane is a Democrat.