General Electric Co. agreed to pay $362.5 million to shareholders to end more than 7-year-old claims that the company covered up liabilities in its power and health insurance businesses that cratered company stock.