President Donald Trump says he will sign a bill to reopen the government for three weeks and back pay federal employees.