A company that provides phone services for prison and jail inmates across the country has agreed to pay $67 million to settle a class action accusing it of looting millions of customers' prepaid accounts of any funds in them if no calls were made for a few months.