Top US lawmakers agree on border funding