Sompo Holdings Inc. agreed to buy Bermuda-based insurer Endurance Specialty Holdings Ltd. for about $6.3 billion (¥637.5 billion), in the company's biggest acquisition as it expands further outside Japan.