SAN FRANCISCO — After months of foot-dragging, Uber is getting closer to complying with a federal judge’s demand to amend its arbitration agreement.

U.S. District Judge Edward Chen has twice ordered Uber Technologies Inc. to inform new drivers of a pending class action before asking them to sign an arbitration agreement and to change language he deemed potentially misleading and coercive.