It may be legal (meaning it complies with some law congress enacted) but it is certainly unconsitutional. The USSC will end up ruling that the current laws allowing this crap, are unconstitutional.
But I think it is impossible to know what this supreme court is going to do since it has become obvious in the last few years that 6 or 7 of the nine justices are as crazy as rats in a tin [out]house during a hail storm.