Trump’s remarks are likely to inflame tensions with Democrats just before a midnight deadline to fund the government.