Here is a history lesson for you, take out a pad and pen if you wish.
Your thinking is utterly anachronistic. Your brain is accustomed to to context and political phikosophy of western liberal democracy and post-enlightenment thinking.
The social construct you are accustomed to has only existed for a couple of centuries.
In the time of the Apostle James, there was no distinction between government and religion. There were not two sets of rules - one for a secular government and one for religion.
In that historical context, the Apostle James made it clear that oppression of the poor by the wealthy is everyone's business. There is no modern distinction between the secular and the religious.
You have no comprehension of the Bible and/or who the Apostles were addressing.