Google och Apple förlorar i rätten, får betala miljarder