Apple has joined Google in opposing proposed EU rules that would force Android to open core AI features to rivals.