Pennsylvania regulators are settling a legal dispute with the ride-hailing company Uber Technologies Inc. for $3.5 million.