Argentina debt plan ruled ‘illegal’ in US court