A council’s legal action against the government over a loss of funding could cost taxpayers more than £250,000.