Unfortunately if your all to all rule grabs the SSH, Admin Console traffic, it will not be sent to the appropriate service and therefore you can no longer connect.
I do not understand why you cannot login though. Your rule should not have affected that. Unfortunately if you cannot get in there, you will have to reboot the firewall and go into the Maintenance mode. This does require that you are directly at the console. Once you are there, you can disable the rule:
cf policy modify name="XXXX" disable=yes
After that, try rebooting back into the Operational Kernel.
shutdown -r now
Hope this helps.