A former Uber security specialist accused the company of dispatching a team of spies to steal its rivals’ trade secrets and using shady tactics to thwart its competition in the ride-hailing market, according an inflammatory letter unsealed Friday by a federal judge.