A California lawsuit could test whether AI companies have a legal duty to report violent threats after a mass shooting in British Columbia.