Trump instigated this shutdown after his administration proposed the budget that was passed by the Senate and while Republicans controlled the entire process. But everything about this shutdown is consistent with Trump's warped sense of reality. First, it is overtly racist. Trump is a racist through and through. He doesn't "see" color - if you're not lily white, you dont count as human (I'm not exaggerating, here). Second, he hates regulation, so doesn't understand the purpose of government, period. In that he is very Republican. Third, he thinks all government employees are against him (as "Democrats"), so doesn't see any issue with punishing them, period. They're all guilty. He'd also like to punish Puerto Rico and California for the same reason, so the idea of taking emergency funds from them, through the emergency declaring, for his wall is a win-win. Fourth, he sees Congress as his enemy, too, since they don't work for him.
Nothing about the shutdown or his wall is inconsistent with his delusions. He IS the threat to national security.
A well reasoned argument is like a diamond: impervious to corruption and crystal clear - and infinitely rarer.
Here, as elsewhere, people are outraged at what feels like a rigged game -- an economy that won't respond, a democracy that won't listen, and a financial sector that holds all the cards. - Robert Reich