The companies reduced their payments after the 2018 corporate tax cut. A judge has said they were wrong to do so.