SACRAMENTO — California has inked a contract to pay up to $315 million to a company that has sued the state multiple times in ...