Tech billionaire takes deal to avoid prison