Funding for courts, prisons, local government and the environment could all be at risk