A former Uber Technologies Inc. software engineer is suing the ride-hailing firm alleging years of sexual harassment, race discrimination and pay inequity, marking the first test of the company’s new policy relaxing forced arbitration for sex-related claims.