Saipem, an Italian company, has agreed to merge its Norwegian competitor Subsea 7 into a global leader in offshore energy services.