Trump’s sudden entrance into the debate and new demands days before a deadline to prevent a Christmastime government shutdown sent Congress spiraling.