Judge says United can axe pensions