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 ReidGOP eager to see Harry Reid go Democratic efforts to cling to power at FCC are doomed to fail Lawmakers haggle over funding bill as shutdown nears 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 BrownOvernight Finance: Funding bill expected tonight | Trump takes on Boeing | House rejects push for IRS impeachment vote | Dow hits new high Dems introduce ‘Buy America’ amendment to water bill Overnight Finance: Trump adviser softens tone on NAFTA | Funding bill to be released Tuesday | GOP leader won't back Trump tariff plan 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 CoburnWill Trump back women’s museum? Don't roll back ban on earmarks Ryan calls out GOP in anti-poverty fight MORE (Okla.), Susan CollinsSusan CollinsMedicare looms over Trump-Ryan alliance Senators crafting bill to limit deportations under Trump Cornyn: ‘Virtual certainty’ Sessions and Price will be confirmed MORE (Maine), Jeff FlakeJeff FlakeUnlike Romney, Evan McMullin stands tall against Trump Cures bill clears first Senate hurdle Senate GOP to Obama: Stop issuing new rules MORE (Ariz.), Lindsey GrahamLindsey GrahamEx-Im Bank fails to get quorum reprieve in stopgap spending bill Overnight Defense: Funding bill would ease Trump Defense pick's confirmation | Obama delivers final security speech Congress wants hearing on Pentagon wasteful spending charges MORE (S.C.), Johnny IsaksonJohnny IsaksonGOP senators wary of nuking filibuster SENATE: Republicans defy odds to keep majority A banner year for U.S. leadership on aid effectiveness MORE (Ga.), John McCainJohn McCainRepublicans tie Trump's Defense pick to funding fight Lawmakers haggle over funding bill as shutdown nears Markos Moulitsas: Kill the filibuster MORE (Ariz.), Rob PortmanRob PortmanGOP debates going big on tax reform Who is Tim Ryan? A closer look at Pelosi’s challenger Battle for the Senate: Top of ticket dominates MORE (Ohio), Roger WickerRoger WickerGOP eager to see Harry Reid go Senate GOP to Obama: Stop issuing new rules Marijuana backers worry over AG Sessions MORE (Miss.), Orrin HatchOrrin HatchChairman: Trump can play ‘key role’ in tax reform push The Hill's 12:30 Report Senate GOP: National museum should include Clarence Thomas MORE (Utah), Bob CorkerBob CorkerPetraeus appointment could rankle wary FBI Haley to meet with senators during Washington trip Senate: Act now to save Ukraine MORE (Tenn.) and Lisa MurkowskiLisa MurkowskiPassing US-Canada preclearance would improve security and economy Overnight Energy: Dakota pipeline standoff heats up Trump's wrong to pick Bannon or Sessions for anything 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 Grassley10 no-brainer ways to cut healthcare costs without hurting quality Senate GOP: National museum should include Clarence Thomas Drug pricing debate going into hibernation MORE (R-Iowa) and other Republicans have complained that the bureau lacks congressional accountability and oversight. 

Sen. Mike CrapoMike CrapoRyan lights Capitol Christmas tree Ex-Im faces new problems with Trump GOP debates going big on tax reform 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 McCarthyWhy Trump needs a strong Agriculture secretary EPA chief: Pipeline rejections are not a ‘policy signal’ Five potential Trump EPA picks 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.