Facing withering criticism from counties and cities , the legislative leaders early Friday agreed to alter part of the plan , committing to repay the transportation money over 10 years rather than take it outright .