The defense secretary has been hospitalized since Jan. 1, after complications from an elective procedure but the White House didn’t know for days.