An Uber Technologies Inc. program used to counteract government officials attempting to conduct “sting” operations is drawing scrutiny amid a flurry of scandals plaguing the ride-hailing company. Uber said the effort is meant to enforce violations of its terms of service agreement that customers accept when they sign up to use the app.