Of course it would stand-up in court. What prickly legal ground are you referring to?
Do you really need to ask that, knowing the activism practiced by the courts nowadays?
I'm in favor of a ban (with case-by-case exceptions); I just don't believe these leftist plant judges will let it stand.