Trump announces deal to temporarily reopen US government agencies