Lyft Inc. said it plans to create a legal-defense fund for drivers in response to a Texas law that severely restricts abortions, with rival Uber Technologies Inc. adding it would do the same.