How is such legislation constitutional?
It isn’t
How would we even know, I suppose we don't have standing or such.
Hardly anything the federal does these days is constitutional.