The Senate confirmed Eric H. Holder Jr. as the new attorney general of the United States.