AI wins landmark UK court ruling