Routers that can allow association but not Internet access to specific devices are more expensive or require more effort
Most routers should have a firewall. You'd just need to create an outbound firewall rule rather than an inbound one.
The better routers and wifi access points let you create separate isolated VLANs, and separate wifi networks that use VLANs. That's a nicer approach, but you definitely need higher end hardware for that.
I've got four VLANs on my home network:
- My main network, with only trusted devices on it
- Devices that don't need internet access
- IoT devices that need internet access
- Guests
The latter three all have client isolation enabled (devices on those networks can't see or connect to any other devices on the network) and the "non internet access one", as the name suggests, has no internet access at all. I use these for both wired and wireless devices (I've got four wifi SSIDs that correspond to the four VLANs)