The U.S. Senate voted 51-47 Wednesday to confirm J. Campbell “Cam” Barker to be U.S. district judge for the Eastern District of Texas in Tyler.

Barker replaces U.S. District Judge Leonard Davis, who took senior status in 2015. Barker, who didn’t immediately return a call seeking comment, is an assistant solicitor general in the Texas Office of the Attorney General, where since 2015 he’s argued appeals for the Lone Star State in state and federal courts. Previously in his career, he was a partner in Yetter Coleman, practicing commercial and intellectual property litigation.