President-elect’s controversial pick for secretary of defense faced tough questions about his past from senators as he made case to lead Pentagon