Puerto Rico’s electric utility reached an agreement with insurance companies MBIA Inc. and Assured Guaranty Ltd. and bondholders to restructure its $8.2 billion of debt, marking a first step by the Caribbean island to reduce financial obligations that have left the government contending with a mounting fiscal crisis.