The lawsuit seeks to oust Sam Altman and claw back billions, testing legal theories about nonprofit governance.