Lyft has agreed to pay $272.5 million to settle claims from California and three of its largest cities that the company mislabeled drivers as independent contractors rather than employees to save money.