The pressure is on for companies such as Uber Technologies Inc. and Lyft Inc. to go greener — and at a faster pace.