Startups like LexShares in Boston and Los Angeles-based Trial Funder, a website that raises funding for personal-injury and civil-rights cases, are taking litigation into the mainstream. The platforms have attracted investors looking for profits that aren’t influenced by the broader investment market.