Mattis confirmed as defense secretary by Senate