HMRC to hand back £700mn to top UK companies after EU tax ruling