The Senate voted 66-34 Tuesday to confirm President Obama’s nominee to lead the Consumer Financial Protection Bureau (CFPB).

Richard Cordray was one of several controversial nominees that Republicans will allow to get an up-or-down vote after Senate Majority Leader Harry ReidHarry ReidFranken emerges as liberal force in hearings GOP eyes new push to break up California court The DC bubble is strangling the DNC MORE (D-Nev.) threatened to use the “nuclear option” to change the Senate rules by eliminating the ability of the minority to filibuster an executive branch nominee.

"More than 700 days since its creation American citizens are just now getting a vote for a consumer watchdog to head the agency," Sen. Sherrod BrownSherrod BrownMajor progressive group unveils first 2018 Senate endorsements Congressional leaders unite to protect consumers Mnuchin weathers stormy confirmation hearing MORE (D-Ohio) said after the vote. "Confirming Richard Cordray was the right thing to do."

Republican Sens. Saxby ChamblissSaxby ChamblissWyden hammers CIA chief over Senate spying Cruz is a liability Inside Paul Ryan’s brain trust MORE (Ga.), Tom CoburnTom CoburnCoburn: Trump's tweets aren't presidential The road ahead for America’s highways Rethinking taxation MORE (Okla.), Susan CollinsSusan CollinsOvernight Healthcare: Trump reinstates ban on US funds for overseas abortions GOP senators: Give states the option of keeping ObamaCare GOP senators to introduce ObamaCare replacement plan MORE (Maine), Jeff FlakeJeff FlakeThis week: Congressional Republicans prepare to huddle with Trump GOP eyes new push to break up California court Live coverage of Trump's inauguration MORE (Ariz.), Lindsey GrahamLindsey GrahamSenate panel votes to confirm Tillerson Overnight Defense: Trump nominates Air Force secretary | Senate clears CIA director | Details on first drone strike under Trump Rubio to vote for Tillerson MORE (S.C.), Johnny IsaksonJohnny IsaksonGOP senators: Give states the option of keeping ObamaCare Trump, Democrats can bridge divide to make college more affordable Trump picks Obama nominee for VA secretary MORE (Ga.), John McCainJohn McCainSenate panel votes to confirm Tillerson Overnight Defense: Trump nominates Air Force secretary | Senate clears CIA director | Details on first drone strike under Trump McCain: Trump's withdrawal from TPP a 'serious mistake' MORE (Ariz.), Rob PortmanRob PortmanHillary gives Bernie cool reception at Trump inaugural lunch GOP governors defend Medicaid expansion Senators introduce dueling miners bills MORE (Ohio), Roger WickerRoger WickerTrump, GOP set to battle on spending cuts Senate confirms first nominees of Trump era Senate gears up for battle over Trump's CIA pick MORE (Miss.), Orrin HatchOrrin HatchObama's last law: TALENT Act will enhance government efficiency McCain: Trump's withdrawal from TPP a 'serious mistake' Trump, GOP set to battle on spending cuts MORE (Utah), Bob CorkerBob CorkerSenate panel votes to confirm Tillerson Rubio to vote for Tillerson Top Dem comes out against Tillerson ahead of key vote MORE (Tenn.) and Lisa MurkowskiLisa MurkowskiCommittee to vote on Zinke, Perry nominations Tuesday Trump, GOP set to battle on spending cuts What we learned from Rick Perry's confirmation hearing MORE (Alaska) voted with Democrats to confirm Cordray.

Earlier Tuesday, 17 Republicans joined Democrats in a 71-29 vote to end debate on Cordray’s nomination. 

Republicans had objected to Cordray as a way to demand reforms to the bureau, which was created in 2010 by the Dodd-Frank Wall Street Reform Act. CFPB was designed to protect consumers from predatory banks and lenders after the financial crisis partially caused by shady mortgage lending.

Sen. Chuck GrassleyChuck GrassleySessions can put the brakes on criminal justice 'reform' GOP senator: Trump budget chief could face confirmation 'problems' Jeff Sessions will protect life MORE (R-Iowa) and other Republicans have complained that the bureau lacks congressional accountability and oversight. 

Sen. Mike CrapoMike CrapoLive coverage of Sessions confirmation hearing Senate rejects Paul's balanced budget Dems attack Trump SEC pick's ties to Wall Street MORE (R-Idaho), ranking member on the Senate Banking Committee, also pointed out that Republicans want to replace Cordray's director position with a bipartisan “board of directors with staggered terms.” He also expressed concern over recent reports that the bureau is conducting “unprecedented data collection.”

“The CFPB is collecting credit card data, bank account data, mortgage data and student loan data,” Crapo said ahead of the vote. “This ultimately allows the CFPB to monitor a consumer’s monthly spending habits.”

The D.C. District Court recently ruled Cordray’s recess appointment was unconstitutional, but now with Senate backing he will be able to serve a full five-year term as head of the agency.

Earlier Tuesday, Reid announced lawmakers had a deal to avoid the “nuclear option” and hold votes on several of President Obama’s controversial nominees, in addition to Cordray.

Democrats are hoping to vote in the next two weeks on Fred Hochberg to be president of the Export-Import Bank, Thomas PerezThomas E. PerezClinton’s top five vice presidential picks Government social programs: Triumph of hope over evidence Labor’s 'wasteful spending and mismanagement” at Workers’ Comp MORE to be secretary of Labor, and Gina McCarthyGina McCarthyCongress should investigate cancer collusion Obama won’t weaken car emissions standards Overnight Energy: Rough hearing for Tillerson MORE to be administrator of the Environmental Protection Agency, in addition to several National Labor Relations Board nominees.

Democrats said Cordray’s confirmation was needed to give banks and consumers certainty. Republicans argued that his nomination was delayed — nearly two years — because they were exercising the right to “advise and consent” on executive branch nominees granted under the Constitution.