Uber Technologies Inc. and Lyft Inc. are operating in a relatively new area of business services called ride-sharing, or peer-to-peer transportation.