The ESRB already rates the games. The ratings and laws on age limits for purchase are already in place.
A tax is not going to change what is purchased or played; just a scheme to rake in more money for the politicians to misuse.
Actually there’s no law on it. It’s an industry convention. A seller ignoring the ESRB rating and getting caught would find themselves off distribution, but there’s no law enforcement repercussions.