VAT decision could see millions of overpaid tax returned to charities