Earlier Thursday, the Senate voted 54-45 to confirm the veteran government official, mostly along party lines. Barr, who also served as attorney general from 1991 to 1993 during President George H.W. Bush's administration, succeeds Jeff Sessions.
The Trump administration and Attorney General Jeff Sessions have made prosecuting government employees who leak sensitive information to the media a high priority.
The Justice Department argued a trio of state laws that, among other things, bar police from asking people about their citizenship status or participating in federal immigration enforcement activities are unconstitutional and have kept federal agents from doing their jobs.