Uber Technologies Inc. has warded off a serious legal threat to its highflying business model with a settlement that may end the debate over whether its drivers should be counted as independent contractors or employees.

The ride-hailing company said Thursday it has settled two closely watched class-action labor disputes covering 385,000 drivers in California and Massachusetts that will let Uber continue classifying drivers as contractors.

...