A prominent California social justice activist has been ruled insane and sentenced to 39 years for the stabbing murder of a young woman in Berkeley.