Yes, it is legal to use a VPN to gamble online in the US. Using a VPN is one of the safest methods to anonymise your server and protect private information from hackers.