Lyft saw an earnings record and increased revenue in the second quarter amid news that the ride-hailing company laid off approximately because of the discontinuation of its first party rental service.