The settlement brings to an end a long-running headache for Uber over whether it does enough to scrutinize its drivers.