It is both state and federal law.
Q. Can the casino stop you? A. Yes - but in 99.9% of cases they wont.
Q. Can a casino rep knock on your door and say 'Im cashing your chips' A. Legally yes but unlikey to happen.