Google has denied any wrongdoing but will be forced to pay out millions to US customers who overpaid for in-app purchases.