Trump on Thursday signed legislation to fund the Department of Homeland Security after the House approved the bill earlier in the afternoon.