A federal judge in Santa Ana, Calif., on Monday approved a $57 million class action settlement for shareholders of Hewlett-Packard Co. who sued after the company halted plans for a mobile operating system.

The hearing came as lawyers in a separate shareholder case against HP seek to restore a settlement after a federal judge in San Francisco rejected its unusual fee arrangement.