US government has until end of Thursday to reunite all immigrant families after courts ruled to end separation policy.