Loretta Lynch listens during her confirmation hearing before the Senate Judiciary Committee January 28, 2015 in Washington, D.C.
PHOTO: Brenda Smialowski/AFP/Getty Images
Loretta Lynch listens during her confirmation hearing before the Senate Judiciary Committee January 28, 2015 in Washington, D.C.
Now playing
01:29
Deal clears way for Loretta Lynch confirmation
Attorney for the Eastern District of New York Loretta Lynch arrives for a news conference to announce money laundering charges against HSBC on December 11, 2012 in the Brooklyn borough of New York City. HSBC Holdings plc and HSBC USA NA have agreed to pay $1.92 billion and enter into a deferred prosecution agreement with the U.S. Department of Justice in regards to charges involving money laundering with Mexican drug cartels.
PHOTO: Ramin Talaie/Getty Images
Attorney for the Eastern District of New York Loretta Lynch arrives for a news conference to announce money laundering charges against HSBC on December 11, 2012 in the Brooklyn borough of New York City. HSBC Holdings plc and HSBC USA NA have agreed to pay $1.92 billion and enter into a deferred prosecution agreement with the U.S. Department of Justice in regards to charges involving money laundering with Mexican drug cartels.
Now playing
01:16
Loretta Lynch brings some credibility to Baltimore
Attorney for the Eastern District of New York Loretta Lynch arrives for a news conference to announce money laundering charges against HSBC on December 11, 2012 in the Brooklyn borough of New York City. HSBC Holdings plc and HSBC USA NA have agreed to pay $1.92 billion and enter into a deferred prosecution agreement with the U.S. Department of Justice in regards to charges involving money laundering with Mexican drug cartels.
PHOTO: Ramin Talaie/Getty Images
Attorney for the Eastern District of New York Loretta Lynch arrives for a news conference to announce money laundering charges against HSBC on December 11, 2012 in the Brooklyn borough of New York City. HSBC Holdings plc and HSBC USA NA have agreed to pay $1.92 billion and enter into a deferred prosecution agreement with the U.S. Department of Justice in regards to charges involving money laundering with Mexican drug cartels.
Now playing
01:54
New attorney general calls for end to 'senseless' violence
A man shouts for calm as protesters clash with police April 27.
PHOTO: Chip Somodevilla/Getty Images
A man shouts for calm as protesters clash with police April 27.
Now playing
01:15
Obama, Lynch pledge assistance to Baltimore
ath bts loretta lynch attorney general ceremony_00023603.jpg
ath bts loretta lynch attorney general ceremony_00023603.jpg
Now playing
02:46
Loretta Lynch sworn in as attorney general
Loretta Lynch listens during her confirmation hearing before the Senate Judiciary Committee January 28, 2015 in Washington, D.C.
PHOTO: Brenda Smialowski/AFP/Getty Images
Loretta Lynch listens during her confirmation hearing before the Senate Judiciary Committee January 28, 2015 in Washington, D.C.
Now playing
01:18
Senate confirms Loretta Lynch as new attorney general
sotu borger mccain loretta lynch nomination in limbo are there racial motivations?_00004204.jpg
sotu borger mccain loretta lynch nomination in limbo are there racial motivations?_00004204.jpg
Now playing
02:24
McCain on Lynch: 'This has nothing to do with race'
Senator Debbie Stabenow attorney general human trafficking loretta lynch_00003927.jpg
Senator Debbie Stabenow attorney general human trafficking loretta lynch_00003927.jpg
Now playing
01:09
Sen. Stabenow on confirming Lynch: 'No more excuses'
Attorney for the Eastern District of New York Loretta Lynch arrives for a news conference to announce money laundering charges against HSBC on December 11, 2012 in the Brooklyn borough of New York City. HSBC Holdings plc and HSBC USA NA have agreed to pay $1.92 billion and enter into a deferred prosecution agreement with the U.S. Department of Justice in regards to charges involving money laundering with Mexican drug cartels.
PHOTO: Ramin Talaie/Getty Images
Attorney for the Eastern District of New York Loretta Lynch arrives for a news conference to announce money laundering charges against HSBC on December 11, 2012 in the Brooklyn borough of New York City. HSBC Holdings plc and HSBC USA NA have agreed to pay $1.92 billion and enter into a deferred prosecution agreement with the U.S. Department of Justice in regards to charges involving money laundering with Mexican drug cartels.
Now playing
01:13
Cardin: Stalled Lynch nomination is outrageous
Now playing
02:06
Obama: Loretta Lynch confirmation delay 'embarrassing'
Lorenzo Luncy, Loretta Lynch
PHOTO: CNN Images
Lorenzo Luncy, Loretta Lynch's father.
Now playing
05:08
Loretta Lynch's confirmation vote still stalled
PHOTO: The White House
Now playing
01:06
Obama scolds GOP over attorney general nomination
Durbin McCain Lynch Nomination Senate Floor_00001921.jpg
Durbin McCain Lynch Nomination Senate Floor_00001921.jpg
Now playing
01:45
John McCain and Dick Durbin argue over Lynch nomination
WASHINGTON, DC - JANUARY 28: U.S. Attorney for the Eastern District of New York Loretta Lynch listens to her introduction during her confirmation hearing before Senate Judiciary Committee January 28, 2015 on Capitol Hill in Washington, DC. If confirmed by the full Senate Ms. Lynch will succeed Eric Holder as the next U.S. Attorney General.
PHOTO: Getty Images
WASHINGTON, DC - JANUARY 28: U.S. Attorney for the Eastern District of New York Loretta Lynch listens to her introduction during her confirmation hearing before Senate Judiciary Committee January 28, 2015 on Capitol Hill in Washington, DC. If confirmed by the full Senate Ms. Lynch will succeed Eric Holder as the next U.S. Attorney General.
Now playing
03:29
Loretta Lynch makes her case for Attorney General
(CNN) —  

After a long delay, the Senate Wednesday easily approved a bill to combat human trafficking.

The vote was 99-0.

Sen. Ted Cruz, R-Texas, was the only senator who did not vote.

READ: AG nominee Lynch nears vote

The bill had been hung up on a controversial abortion provision – the so-called Hyde Amendment – attached to the measure, by Republicans without the knowledge of most Democrats. The amendment is a common provision attached to most government funds for health programs that bars such funds from being used to pay for abortions, but Democrats said it was an unprecedented expansion to non-taxpayer dollars.

But that issue was resolved Tuesday after weeks of negotiations. The deal is essentially a cosmetic fix that lets both parties claim a win: It allows Republicans to say they’ve won their battle against funding abortions with government money, and Democrats to say they’ve avoided expanding the Hyde Amendment.

Passage on the anti-human trafficking measure clears the way for a vote on Loretta Lynch to become the new attorney general.

That confirmation vote is expected to happen at about 2 p.m. on Thursday, per an agreement Senate Majority Leader Mitch McConnell announced after the trafficking vote.

Lynch’s nomination has taken on historic significance – and not just because she would be the first African-American woman to lead the Justice Department. No other nominee for attorney general has had to wait this long for Senate confirmation – 166 days – since Ronald Reagan was in the White House.

Lynch supporters had accused Republicans of delaying in part because she’s an African-American woman, a charge they dismiss.

CNN’s Athena Jones, Deirdre Walsh and Alexandra Jaffe contributed to this report.