Senators are heading home.

Senate lawmakers agreed to confirm 15 judicial nominees Thursday afternoon in a bipartisan deal that will end congressional work until after the Nov. 6 midterm elections.

The package includes three appeals court judges for the 2nd, 3rd, and 9th Circuits and 12 district court judges.

Democrats are eager to leave town and return to the campaign trail. More than a half-dozen Democratic-held seats are locked in competitive races.

Several Republican-held seats are also rated competitive.

Senate Majority Leader Mitch McConnell, R-Ky., had threatened to keep the Senate in session up to the election if Democrats were unwilling to cut a deal on confirmations.

Republicans complained Democrats have been slowing down Trump Administration nominees since the president took office by requiring lawmakers to exhaust all debate time.

The House left town last month.

Both chambers are expected to reconvene a week after the election for the “lame duck” session.