WASHINGTON — Surprised by how easily a South Korean warship was sunk by what an international investigation concluded was a North Korean torpedo fired from a midget submarine, senior American officials say they are planning a long-term program to plug major gaps in the South’s naval defenses.