J. Scott Applewhite, File, Associated Press
In this Jan. 28, 2015 file photo, Attorney General nominee Loretta Lynch testifies on Capitol Hill in Washington. President Barack Obama on Friday said it was "crazy" and "embarrassing" the way the Republican-led Senate has held up confirmation of his attorney general nominee, Loretta Lynch. "What are we doing here?" Obama said. "I have to say there are times when the dysfunction in the Senate just goes too far. This is an example of it. It's gone too far. Enough. Enough. "Call Loretta Lynch for a vote," he said emphatically. "Get her confirmed."

WASHINGTON — Key senators say they're close to a deal on a bill to help sex-trafficking victims, potentially clearing the way for a vote to confirm President Barack Obama's attorney general.

Republican and Democratic senators said they are working to finalize language resolving a dispute over abortion that has hung up the bill.

"We're still talking and I think we're getting closer, but we're not quite done yet," Sen. John Cornyn, R-Texas, said Monday. "I'm hoping for it to break any minute."

"We're close," said Sen. Patty Murray, D-Wash. "We've still got a few hurdles."

The deal looked likely to be announced Tuesday, though it could still take some time for the legislation to get to final passage.

Republican leaders have refused to bring attorney general nominee Loretta Lynch up for a vote until that happens, leading Democrats to complain about the long delay, which Obama has called "embarrassing."

Lawmakers of both parties are eager to move forward on the trafficking bill, which had wide bipartisan support until Democrats said they noticed a provision in the bill barring money in a new victims' fund from going to pay for abortions in most cases. They claimed this amounted to an unacceptable expansion of existing prohibitions on federal funding for abortions.

Negotiations have centered on how to structure the victims' fund to satisfy Democrats' concerns, while reassuring Republicans that they are not relaxing existing prohibitions on abortion spending.