US, Mexico working on deal to cut migration at the border