URE does not restrict its functionality at localhost. I tried and could not repeat an issue. Category ID was saved as expected.
Pay attention that code expects a digital category ID (e.g. 12), not its character slug (e.g. ‘member-posts’). Go to the Posts->Categories page, take category ID from there and input it as a restriction for a selected role.