Oracle will spend $500 million more on restructuring costs in the current fiscal year than previously reported as artificial-intelligence models allow the company to shrink parts of its workforce.