Thousands of services subsidised by councils are in danger because the funding may have to be diverted elsewhere