From what I understand, the American commander went against direct orders not to capture a German U-boat. There was concern that, if the Germans found out about the capture of a U-boat, they would change their coding system.
If so, the guy is no hero.