The Senate voted 78-22 on Thursday to confirm the president's nominee for Defense Secretary, giving the Pentagon new leadership amid rising tensions abroad.