Built to track enemy submarines, the Navy’s underwater listening network inadvertently revealed that whales may be singing across entire oceans.