WASHINGTON (AP) — Senate leaders announced a deal Tuesday to move forward on a stalled human trafficking bill, clearing the way for a vote on President Barack Obama’s attorney general nominee within days.

The deal unveiled on the Senate floor aimed to solve a dispute over abortion that has stalled the once-popular trafficking bill for weeks. Attorney General-designate Loretta Lynch was caught in the crossfire, infuriating Democrats, because Republican leaders decided to hold off on her confirmation vote until the trafficking bill was resolved.

“I’m glad we can say there is a bipartisan proposal that will allow us to complete action on this important legislation so we can provide help to the victims who desperately need it,” said Majority Leader Mitch McConnell, R-Ky. He said he anticipated a vote on Lynch, who will become the nation’s first black female attorney general, “in the next day or so.”

The deal aims to address Democratic concerns that the legislation expands existing prohibitions on spending federal funds on abortions. Republicans had to be satisfied that those prohibitions were not curtailed.

“Let’s get out of this quickly,” said Democratic Leader Harry Reid. “Let’s get Loretta Lynch confirmed.”

Copyright 2015 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.