The Senate confirmed former acting Attorney General Matthew Whitaker, a national security newcomer, to serve as U.S.