Councils must pay back the money