That seems like one of those "there's no rule about a dog playing basketball" Air Bud things - unless you can cite a specific law, I don't believe it's actually on the books as being illegal. Also not something I'd recommend, but I'd be very surprised to see a law specifically banning it.