Lawmakers on Thursday were working to close a deal on a humanitarian funding package to address the migrant crisis on the border.