It didn't. The court "discovered" that restriction in the 14th Amendment. Leftists have little regard for original intent.
Apparently they're not the only ones.
You are obviously up to something a little *unusual* here. You don’t think 2nd amendment applies to the States,,and you think governments clearly had a right to set an official religion,, until someone looked in the 14th amendment, and irrationally “found” that government can’t organize an official church.
You mystify me.
“original intent”
leaves no room for your average inferiority laden narcissistic leftist to “show his brilliance”.
In order to do that, you must provide “new insight”, IE, your own whims instead of original intent.
It's your opinion that the original intent of "the people" was to allow states but not the federal government to disarm them?