(CNN) -- The U.S. Senate on Tuesday confirmed Chuck Hagel as defense secretary after a bruising political fight. The former Nebraska senator, a Republican, will succeed Leon Panetta at the Pentagon.