Even before President Joe Biden took office, he announced his intention to nominate Garland to be his Attorney General. The Senate Judiciary Committee, in charge of evaluating such presidential nominees, then conducted its confirmation hearings for Garland in February 2021. At the conclusion of those hearings, Garland received a favorable recommendation from the committee, thanks to support for Republicans.
In addition to all the Democrats on the Senate Judiciary Committee, Senators Chuck Grassley of Iowa, Lindsey Graham of South Carolina, John Cornyn of Texas, and Thom Tillis of North Carolina supported Garland's nomination.
Then, on March 10, 2021, when Garland's nomination came before the full Senate for a vote, he was confirmed in a 70-30 vote. Again, in addition to every Democrat senator, a number of Republicans voted to make Merrick Garland the Attorney General of the United States.
The 20 GOP senators joining Democrats to confirm Garland were:
Roy Blunt of Missouri, Richard Burr of North Carolina, Shelley Moore Capitol of West Virginia, Bill Cassidy of Louisiana, Susan Collins of Maine, John Cornyn of Texas, Joni Ernst of Iowa, Lindsey Graham of South Carolina, Chuck Grassley of Iowa, Jim Inhofe of Oklahoma, Ron Johnson of Wisconsin, James Lankford of Oklahoma, Mitch McConnell of Kentucky, Jerry Moran of Kansas, Lisa Murkowski of Alaska, Rob Portman of Ohio, Mitt Romney of Utah, Mike Rounds of South Dakota, John Thune of South Dakota, and Thom Tillis of North Carolina.
https://townhall.com/tipsheet/spencerbrown/2022/08/09/the-republicans-who-voted-to-confirm-merrick-garland-n2611488