California professor accused of faking Native American ancestry reaches agreement to resign